Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:backup [2011/05/16 23:54] – [Xfe and Backup] Guywiki:backup [2011/06/16 13:00] (current) Guy
Line 1: Line 1:
 ====== Backup ====== ====== Backup ======
  
-Backup may be used to save files and settings in Tiny Core.+Backup may be used to save files and settings in Tinycore.
  
-==== Start Up and Shut Down Times ====+==== Time taken to Start Up and Shut Down ====
  
-The more you have in backup, the longer it will take to start up and shut down Tiny Core.+The more you have in backup, the longer it will take to start up and shut down Tinycore.
  
 For quicker start up and shut down, minimize the size of backup, or if installed on a hard drive, don't use backup at all. For quicker start up and shut down, minimize the size of backup, or if installed on a hard drive, don't use backup at all.
Line 20: Line 20:
  
 Include the directories relative to the root directory, and leave out the leading /. Include the directories relative to the root directory, and leave out the leading /.
 +
 +==== Safe Backup ====
 +
 +When shutting down Tinycore, you may select Safe Backup. This saves the previous backup as mydatabk.tgz, and creates a new backup.
 +
 +To save additional backup files, see
 +
 +  * [[backup date|Backup with Date and Time]]
  
 ==== Change the Name of the Backup File ==== ==== Change the Name of the Backup File ====
Line 27: Line 35:
 If you are using version 3.6 or higher, you can change the name of the backup file. If you are using version 3.6 or higher, you can change the name of the backup file.
  
-To change the name of the backup file, include "mydata=backupname" boot code in the bootloader. Replace "backupname" with the name you want to use.+To change the name of the backup file, include "mydata=other-name" boot code in the bootloader.
  
 ==== If you don't want to use Backup ==== ==== If you don't want to use Backup ====
Line 37: Line 45:
 When using persistent home and opt you may choose not to use backup at all, by including the “norestore” boot option in the bootloader.  When using persistent home and opt you may choose not to use backup at all, by including the “norestore” boot option in the bootloader. 
  
-If you do use backup, all references to the home and opt directories can be removed from /opt/.filetool.lst. In the version I am using, that is everything in /opt/.filetool.lst. Then add the names of other files and directories you want in backup to /opt/.filetool.lst.+If you do use backup, all references to the home and opt directories can be removed from /opt/.filetool.lst. In the version I am using, that is everything. Then add the names of other files and directories you want in backup to /opt/.filetool.lst.
  
 ==== Other Ways to save Files and Settings ==== ==== Other Ways to save Files and Settings ====
Line 45: Line 53:
 1. Making extensions for settings. For more information, see [[extension_for_settings|Make Extensions for Settings]]. 1. Making extensions for settings. For more information, see [[extension_for_settings|Make Extensions for Settings]].
  
-2. Saving in /opt. For an example of this, see [[passwd|Tiny Core Passwords]].+2. Saving in /opt. For an example of this, see [[passwd|Tinycore Passwords]].
  
 ==== Exclude Anything Unnecessary from Backup ==== ==== Exclude Anything Unnecessary from Backup ====
  
 Exclude anything unnecessary from backup. Following are examples. Exclude anything unnecessary from backup. Following are examples.
 +
 +==== Files which Don't Change ====
 +
 +You may make extensions for files which don't change, particularly large ones, and exclude them from backup.
 +
 +To list large files in /home/tc, open the terminal and use
 +
 +<code>/home/tc/ -type f -size +1M | xargs ls -lhS</code>
 +
 +For more information, see [[extension_for_settings|Make Extensions for Settings]].
  
 ==== Internet Browser Cache ==== ==== Internet Browser Cache ====
Line 61: Line 79:
  
 You may also edit the preferences in Xfe, to permanently delete files instead of adding them to trash. To do this, go to Edit, then Preferences. Click the square preceeding "Include a command to bypass the trash can (permanent delete)," to tick it. Then click "Accept." You may also edit the preferences in Xfe, to permanently delete files instead of adding them to trash. To do this, go to Edit, then Preferences. Click the square preceeding "Include a command to bypass the trash can (permanent delete)," to tick it. Then click "Accept."
 +
 +==== Extract a Backup File ====
 +
 +You normally access a backup by starting the computer, and restoring it.
 +
 +Backup files can also be extracted manually.
 +
 +Backup files are normally saved in the tce directory (somewhere like /mnt/sda1/tce).
 +
 +To access the contents of a backup, create a new directory and copy the backup file to it. Open the terminal and type
 +
 +<code>cd directory
 +tar -xvf backup-name</code>
  
 ==== Using Commands ==== ==== Using Commands ====
  
-To find out where backup is saved, open the terminal and use+To run backup, open the terminal and use 
 + 
 +<code>filetool.sh -b</code> 
 + 
 +To restore files in backup, use 
 + 
 +<code>filetool.sh -r</code> 
 + 
 +To list files that will be in backup and their size, use 
 + 
 +<code>filetool.sh -d</code> 
 + 
 +To find out where backup is saved, use
  
 <code>cat /opt/.backup_device</code> <code>cat /opt/.backup_device</code>
Line 70: Line 113:
 Also see Also see
  
-  * [[backup_hd|Backup when Installed on a Hard Drive]]+  * [[backup_hd|Options when Installed on a Hard Drive]] 
 + 
 +  * [[backup_usb|Options when Installed on a USB Drive]]
  
-  * [[backup_usb|Backup when Installed on a USB Drive]] 
Print/export
QR Code
QR Code wiki:backup (generated for current page)