
no_create_root doesnt work the way I think it should
Thanks to all who have commented. I turned off the hard drive &
rebooted & the directory does not exist right now, so I think David's
observation is what has happened. It seems like this happens when I log
in at the same time that cron runs rsnapshot. It sounds like just
creating a Backup directory on the device and using that as root will be
sufficient?
On Wed, 2012-05-09 at 12:21 +0100, David Cantrell wrote:
On Tue, May 08, 2012 at 10:11:27PM -0600, brad wrote:
I'm backing up to an external, encrypted, USB hard drive from cron. I
have:
snapshot_root /media/Maxtor-1/
no_create_root 1
The hard drive gets mounted as /media/Maxtor-1. Occasionally root will
get filled up by the backup, written to a directory /media/Maxtor-1, so
it appears to me that it is creating the snapshot_root. This happens
when the ext hard drive doesn't get mounted for some reason. Am I
misunderstanding no_create_root or is this a bug?
It's neither
What you're misunderstanding is what happens when a volume is mounted.
For a volume to be mounted, the place in the filesystem that it is to be
mounted at must already exist as a directory. So, at some point that
directory had to get created. Consumerish OSes like Ubuntu and are often
user-friendly enough to make that transparent, by silently creating the
directory for you on demand, and removing it afterwards. However, those
operations are not atomic with the mount and unmount, so there is a
brief period of time where the directory exists but the volume isn't
mounted. If during that period anything gets put in the directory, it
won't be removed, and the directory will then exist for ever until you
manually remove it. And if it's already there, then rsnapshot will
happily use it.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss