Back up your home directory with , and you can retrieve any past day's snapshot of any file.
constructs each day's snapshot in the directory named YYYY/MM/DD under the destination directory. All source files are copied to the snapshot directory for the first time, and on and after the second time, copies only updated or newly created files and stores unchanged files as hard links to the files of the previous day's snapshot to save disk space.
Exclude files or directories matching PATTERN.
Exclude files larger than SIZE from backup.
Exclude files matching GLOB from backup.
Write a logfile to FILE.
Show the program version and exit.
Suppress all normal output.
Don't actuall run any commands.
Show help message.
The latest version of is always available at http://namazu.org/~satoru/pdumpfs/
pdumpfs /home/yourname /backup >/backup/log 2>/backup/error-log
On and after the second day, it is a good idea to invoke the backup command with cron(8) daemon. Adding the following line to your crontab file allows you to back up your home directory at 5 a.m. everyday.
00 05 * * * pdumpfs /home/yourname /backup >/backup/log 2>/backup/error-log
If the backup system works well, you can retrieve any given day's file with a file name like /backup/2001/02/19/yourname/ . .
To make all files in /backup immutable on Linux, run the following command as root:
chattr -R +i /backup
On BSD 4.4 derived systems, run the following command as root:
chflags -R schg /backup
These commands will keep you from accidentally removing your backup files with rm -rf
This manual page was translated from the HTML document by An Hiroyuki Shimada Aq email@example.com , and reformatted by An Akinori MUSHA Aq knu@iDaemons.org .