
archive inflation from file moves.
On 11/17/2011 04:29 PM, Scott Hess wrote:
On Thu, Nov 17, 2011 at 1:13 PM, Scott Hess<scott+rsnapshot < at > doubleu.com> wrote:
On Thu, Nov 17, 2011 at 2:47 AM, Michael Lush<mjlush < at > gmail.com> wrote:
As I understand it moving a data around a file system registers to rsnapshot
as new files being created/deleted.
For example I have two disks /home and /snapshot
I download a 5Gb movie to /home/michael/tmp/Macho_Women_with_Guns_2.mp4
rsnapshot runs creating
/snapshot/daily.0/home/michael/tmp/Macho_Women_with_Guns_2.mp4
Next day I move it to /home/archive/movies/Macho_Women_with_Guns_2.mp4
/snapshot/daily.0/home/archive/movies/Macho_Women_with_Guns_2.mp4
/snapshot/daily.1/home/michael/tmp/Macho_Women_with_Guns_2.mp4
So /snapshot will contain 10Gb until the tmp file falls off the end of the
snapshot list.
I guess the fix is simply "don't do it" but I was wondering if there was a
solution
In the past when I've shifted a very large directory from one place to
another, instead of moving it I did cp -al. This hardlinks the files,
and the snapshot should extend those hardlinks to the new location (I
can't recall if this requires a special rsync flag or not). The next
day after a few backups had run, I circled back and removed the
originals. It works alright as a one-shot thing.
Addendum: You need -H in your rsync flags to get this kind of
hard-link behavior, I think.
-scott
Another option that I've done in the past is to move the moved/renamed
directory/file on the backup server. In your case I would have executed
the following command on the backup server before the next backup run:
mv /snapshot/daily.0/home/michael/tmp/Macho_Women_with_Guns_2.mp4
/snapshot/daily.0/home/archive/moves/
This is, of course, of limited value in a large, multi-user
environment. It only works when I'm doing some housekeeping as the
system admin. But my users don't normally warn me ahead of time when
they rename or move directories around...
Steve
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss