Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have an Rsnapshotting local server that takes snapshots of folders of miscellaneous computers within the local LAN.

There are daily, weekly, monthly and yearly snapshots.

So somebody puts a file into one of those folders being monitored by Rsnapshot and then some hours later the Rsnapshot server takes his daily snapshot.

After that the user deletes this given file.

And then the next day the system takes another snapshot.

It seems like this file will get permanently deleted on the backup, seven days (for I have 7 dailies) after the last snapshot was taken of it.

Are there any precautions for controlling how long a system keeps files that are being deleted, in Rsnapshot?

How have others dealt with this issue?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Rsnapshot takes a snapshot every day and every seven days the oldest daily snapshot becomes the new weekly snapshot. The other dailies are discarded. That's the basic idea, to store a relatively low number of snapshots, but with high granularity for the recent days and decreasing granularity for older data.

If I understand you correctly, you want to keep the state of every day without discarding any data. Then the solution is not to use yearlies, monthlies and weeklies, but to use e.g.

retain daily 730

this stores the backup for two years without discarding any data not older than 730 days.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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