Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
BackupNotes
Edit
PageHistory
Diff
Info
LikePages
!!! Advice <big>__''Back up your data!!!''__</big> Home user:: Write or acquire a script that copies it off onto another machine. Enterprise server:: Buy a tape drive and consider using a good commercial backup program or writing some ''really good'' scripts. (P.S. __''Back up your data!''__) Otherwise you might end up like [this guy | http://www.wlug.org.nz/archive/sounds/canonhelpdesk.mp3] (warning: contains bad words). !!! Tools If you are looking for commercial dedicated backup tools, take a look at [Arkeia] and BackupExec. For homegrown solutions, you can use tar(1) or rsync(1). The latter is particularly interesting as it can synch directory trees with minimal I/O. To copy to another machine/partition etc you can do <tt>rsync -av --rsh="ssh" sourcedir destdir</tt>. Other options you might like to consider on rsync(1) command line are <tt>-l</tt> which keeps symlinks intact, <tt>-z</tt> which compresses the data (useful over slow links), <tt>-u</tt> which checks that the destination is not newere, and <tt>--delete</tt> which deletes files which exist on the destination but not the source (use with caution!!) When using rsync(1) it is important whether you have a slash at the end of the directory or not. If you have the slash the destination directory is where it copies it too, otherwise it is one level up. For example to synchronise a directory test in the home directory to a machine with name remotepc and deleting files that aren't in the source you can do: <tt>rsync -luvaz --delete ~~/test remotepc:</tt> rsync(1) has also been used as the basis for a number of [Free] tools, such as the excellent [rsnapshot|http://www.rsnapshot.org/], which lets you keep multiple backups at only slightly more space usage than a single day by keeping only one copy of files unchanged across backups. Another rsync(1)-based tool is rdiff-backup(1), a [Python] program based on rdiff(1). !!! See also * TarNotes for information on backing up large amounts of data to more than one tape with tar(1) * ArkeiaNotes * BackupExecNotes * [Linux Ext2fs Undeletion mini-HOWTO | http://www.tldp.org/HOWTO/Ext2fs-Undeletion.html] (although you don't need to since you have good backups, right?) ---- CategoryDiskNotes
2 pages link to
BackupNotes
:
Arkeia
HardDisk