SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
backing up files in freebsd with schg flag
Author Message
Post backing up files in freebsd with schg flag 
I'm running rdiff-backup on freebsd. Freebsd has some extra flags in
the file system, in particular the schg/noshg flag whic when set, a
process can not change the inode of the file.

For example, running rdiff-backup on the root file system, I get this error:

Exception: EnvironmentError '[Errno 1] Operation not permitted'
linking /2nd/usr/bin/rdiff-backup.tmp.46775 to /2nd/usr/bin/chfn

of course, it's true if I try to perform this action by hand, I get:

# ln /2nd/usr/bin/chfn /2nd/usr/bin/rdiff-backup.tmp.46775
ln: /2nd/usr/bin/rdiff-backup.tmp.46775: Operation not permitted

However, if I remove the schg flag before I perform the ln, it succeeds:

# ls -lo /2nd/usr/bin/chfn
-r-sr-xr-x 6 root wheel schg 17656 Jul 11 2008 /2nd/usr/bin/chfn*
# chflags noschg /2nd/usr/bin/chfn
# ls -lo /2nd/usr/bin/chfn
-r-sr-xr-x 6 root wheel - 17656 Jul 11 2008 /2nd/usr/bin/chfn*
# ln /2nd/usr/bin/chfn /2nd/usr/bin/rdiff-backup.tmp.46775
# chflags schg /2nd/usr/bin/chfn

Is there any workaround for this?

Michael Grant

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB