7

Looking to move from rsnapshot backups to something like backupninja. I'm having trouble finding a definitive answer on how to delete the rsnapshot backups.

From what I understand many of the files are hard links and not actual copies.

How can I delete /mnt/disk1/backups/* (daily.0, weekly.0, etc) without harming the original files?

Is it simply rm /mnt/disk1/backups/* -R?

8

You are right about backup files being hard links and it is safe to just delete the backup directory.

Hard links are just pointers, so if a file have two hard links then the space occupied by this file will only be reclaimed by OS when both links are deleted.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.