[issue2123] hammer is losing files
Matthew Dillon
dillon at apollo.backplane.com
Tue Aug 30 09:44:44 PDT 2011
:
:The snapshot in question has been created via the daily periodic
:scripts. It's symlinked in /var/hammer/backup/sync and appears in the
:hammer snapls output:
It could have caught the rsync in the middle, though it isn't supposed
to break inode<->file linkages. rsync might be re-creating the hardlinks
on every pass.
Are the other snapshots ok?
The most reliable way is to create a manual snapshot as part of your
rsync script so the snapshot occurs on a quiescent filesystem. Something
like this:
do rsync stuff
sync; sleep 5; sync; sleep 5; sync; sleep 5
hammer snapshot /backup/sync /var/hammer/backup/sync "rsync snapshot"
-Matt
Matthew Dillon
<dillon at backplane.com>
More information about the Bugs
mailing list