[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] backing up files in freebsd with schg flag
From: |
Michael Grant |
Subject: |
[rdiff-backup-users] backing up files in freebsd with schg flag |
Date: |
Fri, 4 Feb 2011 12:01:29 +0100 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [rdiff-backup-users] backing up files in freebsd with schg flag,
Michael Grant <=