How to properly backup multiple folders


#1

Hi,

I have two folders I want to backup:
/mnt/data (ntfs file system)
/home/michael (ext4)

I want to backup both folders to the same repository, but I’m not sure, if there is a difference between

a/
restic -r /tmp/repo backup /mnt/data /home/michael

vs

b/
restic -r /tmp/repo backup /mnt/data
restic -r /tmp/repo backup /home/michael

Which of the two would you recommend (and for what reasons)?
Reading https://github.com/restic/restic/issues/549, it seems I should use b/, or am I not affected as /mnt/data and /home/michael don’t share a common top level directory?


#2

It doesn’t really make any difference if you backup the folders separately or not. The only difference is that you end up with twice the number of snpashots (e.g. what restic snapshots prints). Since the folders do not have the same basename (data and michael) you’re not affected by https://github.com/restic/restic/issues/549.

If you’d ask me, I’d backup the folders in a single backup. That way you can use the fuse mount and see the state of both folders at the same time.


#3

If my post answers your question, please tag it as “This reply solves my problem”. Thanks!