10 votes
Accepted

delete rsnapshot directories

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 ...
  • 4,619
9 votes

rsnapshot diff between snapshots

Not sure if this question has been answered, but just wanted to do the same thing. I used: rsnapshot-diff -v folder1 folder2 which worked for me. Note that folder1 and folder2 are folders and not ...
  • 91
5 votes

How to truncate backup paths in rsnapshot

Steven's first suggestion to use ./ does actually work with rsnapshot, you just have to put it twice: backup root@123.123.123.123:/mnt/rsnapshot/././ srv01/ Rsnapshot will strip the last slash of, ...
5 votes
Accepted

How to compress files before Rsnapshot remote backup start?

The question is, WHY do you want compression? Compression to improve transfer speed If you want to compress the speed of the transfer, you can add a parameter to rsync to enable on-the-fly compression ...
  • 804
5 votes
Accepted

How to tar Rsnapshot backup files automatically?

You can use the cmd_postexec configuration setting to run a custom script after rsnapshot completes. This script can then do anything you want. However, tarring the files after the fact will, if ...
  • 4,295
5 votes
Accepted

rsnapshot: why daily/weekly/monthly instead of many daily backups?

They're cheap, but they're not free. You can keep a year's worth of dailies if you want, and if you've got the space, but the moment you start to have disk space pressure, the cost/benefit of keeping ...
  • 95.7k
4 votes

rsnapshot limiting download rate

This answer is probably a bit late but for future reference: I used the --bwlimit parameter for rsync for limiting directory backups. You can either set it globally for all directory backups: ...
4 votes
Accepted

Configuring rsnapshot to only daily backups

Removing the cron job is not enough. You also have to adapt the config file to reflect the change. Remove (or uncomment) the following line from /etc/rsnapshot.conf: retain hourly 24 Then your ...
  • 1,489
4 votes

Which filesystems offer snapshot functionality for users to recover data?

As of 2022, btrfs is considered stable for non-RAID setups, and it offers transparent and stable snapshots. The top answer is from 2011 and mentions that both btrfs and ZFS are considered unstable. 11 ...
3 votes

explain rsnapshot incremental rotation

Where does the data go to First you have to understand that only the gamma (lowest level) backups actually copy any data, all the others just rotate (aka rename) and delete the already existing ...
  • 131
3 votes
Accepted

How to have rsnapshot link to original files?

The way rsnapshot works, on the first run, it creates a full copy. On the next ones, it only stores the files that have changed. If a file hasn't changed, it creates a hard link to it. This means ...
3 votes

Using Rsnapshot with sync_first, link_dest, and use_lazy_deletes

You have to call rsnapshot sync before calling rsnapshot <level>.
3 votes

Why is rsnapshot claiming source directory doesn't exist?

It would be good to test the syntax of the configuration first. rsnapshot -c /usr/local/etc/rsnapshot.conf configtest In my case the problem "Source directory ... doesn't exist" was solved by ...
2 votes

rsync/ssh/rsnapshot backup -- remote script execution

The rsnapshot.conf example actually uses backup_exec, not backup_script. However, backup_script can still be used to run arbitrary commands over ssh and sync any files generated in a temp directory. ...
  • 318
2 votes

rsnapshot vs zfs / btrfs snapshots

Have a look at btrbk. Basically what the previous poster did write can be done with btrfs also. Btrbk will automate it for you. The speed difference between the rsync based rsnapshot and the btrfs ...
  • 21
2 votes
Accepted

rsnapshot vs zfs / btrfs snapshots

It is a working scheme, but in order to make yourself even more comfy you could actually store data on zfs. This will give the following advantages: you will be capable of creating snapshots exactly ...
  • 8,500
2 votes
Accepted

passing additional parameters to rsync using rsnapshot

Create a separate config file for this host cp /etc/rsnapshot.conf /etc/rsnapshot.link.conf Only add the directories where you want the symlinks to be copies and remove all of the other backup ...
2 votes
Accepted

Backup 2 remote servers at different time

Create a second config file for the second server (copy and edit) and then change your cronjob like this: 0 3 * * * /usr/bin/rsnapshot -c /path/to/config_server1.cfg daily 0 10 * * * /usr/bin/...
  • 98k
2 votes
Accepted

Send me mail on rsnapshot fail

Ok, here is what I did for now: First I installed "postfix" as mail-server. Than I added some lines to my shell-script: ... OUTPUT=`rsnapshot $ARGUMENT` if [ $? -ne 0 ] then echo "${OUTPUT}" | ...
  • 163
2 votes

My rsnapshot is freezing without errors

Do not use sshfs, as its stability is not always top-notch and it's behavior with rsync can be sub-optimal. Rather, configure rsnapshot to directly use rsync-over-ssh. An example from rsnapshot man ...
  • 45.4k
2 votes

How rsnapshot manages moved and/or renamed files and folders

If the source folder is renamed/moved, rsnapshot (or rsync) does not detect the change. In other words, the renamed directory will be re-copied without hardlinks. To avoid that, if/when you know a big ...
  • 45.4k
1 vote

Why are rsnapshot cron jobs running on the wrong schedule?

From the docs: When configuring [the retain intervals in /etc/rsnapshot.conf], note that the first in the list will be the only one that actually backs up files from the file system AND rotates its ...
1 vote

(rsync on) mounted volume: hard links seem to be preserved, but space calculated as full files

My version of du (Debian, du (GNU coreutils) 8.30) handles files with hardlinks and counts the multiple instances only once. It would appear that yours does not. You can verify this fairly easily, ...
  • 1,589
1 vote

In Rsnapshot, error in config excluding remote folders

You have to separate the arguments to rsync with spaces, not commas. I.e., instead of this: +rsync_long_args=--rsync-path=/usr/local/bin/rsync_wrapper.sh,exclude_file=/etc/rsnapshot.exclude You ...
  • 384
1 vote

Multiple server backups using kubernetes and rsnapshot

There is Velero to backup Kubernetes cluster resources and persistent volumes to S3-compatible storage. You can configure sync periods for backups on a regular basis.
  • 362
1 vote

rsnapshot-diff - what's using all that space?

Sorry to answer my own question, but I think I've worked it out. I'm dumping out the mysql databases every night, and these are currently occupying the magic 15GB in terms of disk space. I think that ...
1 vote
Accepted

Configuring rsnapshot to only daily backups with sync_first

In /etc/rsnapshot.conf set snapshot_root /backup/rsnapshot/ # ... sync_first 1 and the retain rules to only daily: #retain hourly 6 retain daily 7 In /etc/cron.d/...
  • 2,429
1 vote

Does rsnapshot save binary diffs?

It will copy the new file completely in the sense it will write a complete new file, but it can detect changes and only transmit these over the network. Writing only diffs is not possible as ...
  • 98k
1 vote

Unable to use rsnapshot to sync non-owned files but able to do it with plain rsync command

I had exactly the same error, I was forced to specify a manual script --rsync-path='sudo rsync' > --rsync-path='/usr/local/bin/rsync' with /usr/local/bin/rsync on remote #! /bin/sh exec /usr/bin/...
  • 11
1 vote

rsnapshot diff between snapshots

The problem I have with "rsnapshot-diff" or even a related "diff_backup.pl" script is they don't take into account files that were renamed and then relinked together. They list them as added-deleted ...
  • 329

Only top scored, non community-wiki answers of a minimum length are eligible