Horcrux email backup exclude list
To keep record of the changes via easily grepable files. I normally add that option and pipe like: rsync -Pai -delete \ It produces succinct, machine readable output that describes what changes rsync is doing. Though, you might want to add -delete, which would cause rsync to delete files from the destination that are no longer present in the source.Īnother useful option is -i or -itemize-changes. cp -reflink -av \Īnyway, once having done something like that you can just do a regular rsync to copy the differences: rsync -va \ It's still faster than regular copy because it doesn't read and write the data, and it also doesn't take additional space. Reflinks are done by making a new inode but referring to the same blocks as the source file, implementing COW support. Or if you're using a filesystem that supports reflinks, then you can also do that. Snapshots are instantaneous and don't take additional space. If you use a filesystem with subvolumes like btrfs, you can also just snapshot from the previous backup before rsync'ing. There's also -copy-dest if you want it to copy instead (it's still faster when $dst is a remote or on a faster drive). What it does is to hardlink files from the previous backup when they are unchanged from the source. The Wikipedia article for Incremental Backups has an example rsync command that goes roughly: rsync -va \
It might make sense if you're compressing them, but you're not even doing that. This becomes easier if you don't do that. The trouble here is that you're tar'ing the backups. By default, it copies only when there is a difference in last-modified time or size, but it can even compare by checksum with -c. Rsync is precisely that program that copies based on a diff. I know I could probably create a script that runs a diff and then selects the files to backup based on the result (or more efficiently, just get a checksum and compare), but I want to know if there's any utility that can do this a tad easier :) I think it's kinda like how GitHub works :) With this system, I would save space by only backing up the incremental changes between each backup (with obviously the master backup that has all the initial files), and I would have backups of the incremental changes, so for example if I made a change on day 2, and changed the same thing again on day 3, I can still get the file with the change from day 2, but before the change from day 3. So as a last example, let's say the next day I changed textfile1, and added picture2 and picture3: $ mystery-command testdir/ testbak Here's the kicker: I want the backup utility to detect the fact that picture1, randomfile1, randomfile2 and textfile1 have not been changed since last backup, and only backup the new/changed files, which in this case is randomfile3, such that: $ tar -tf $ tar -tf testbak/-03-24-16-testdir.tar Now when I run the mystery command, I will get another tarball for that day: $ mystery-command testdir/ testbak Now, let's say the following day, I add a file, such that my structure looks like: testdir
Horcrux email backup exclude list archive#
I want to run the backup utility and basically create an archive (or a tarball) of all of these files in a different directory: $ mystery-command testdir/ testbak So this is an example of what I want to achieve with it.
Horcrux email backup exclude list how to#
I tried rsync, but it doesn't seem to be able to do what I want, or more likely, I don't know how to make it do that. I'm looking for a backup utility with incremental backups, but in a more complicated way.