|
Next: Restoring files with tar Up: Simple backups Previous: Simple backups Making backups with tarA full backup can easily be made with tar : # tar -create -file /dev/ftape /usr/srcThe example above uses the GNU version of tar and its long option names. The traditional version of tar only understands single character options. The GNU version can also handle backups that don't fit on one tape or floppy, and also very long paths; not all traditional versions can do these things. (Linux only uses GNU tar .) If your backup doesn't fit on one tape, you need to use the -multi-volume (-M) option: # tar -cMf /dev/fd0H1440 /usr/srcNote that you should format the floppies before you begin the backup, or else use another window or virtual terminal and do it when tar asks for a new floppy. After you've made a backup, you should check that it is OK, using the -compare (-d) option: # tar -compare -verbose -f /dev/ftapeFailing to check a backup means that you will not notice that your backups aren't working until after you've lost the original data. An incremental backup can be done with tar using the -newer (-N) option: # tar -create -newer '8 Sep 1995' -file /dev/ftape /usr/src -verboseUnfortunately, tar can't notice when a file's inode information has changed, for example, that it's permission bits have been changed, or when its name has been changed. This can be worked around using find and comparing current filesystem state with lists of files that have been previously backed up. Scripts and programs for doing this can be found on Linux ftp sites.
Next Up Previous Contents Index Next: Restoring files with tar Up: Simple backups Previous: Simple backups Lars Wirzenius Sat Nov 15 02:32:11 EET 1997 |
|||||||||||||||||
With any suggestions or questions please feel free to contact us |