Hi all!
I have a few questions of understanding restic, maybe you can help me getting them answered?
a) How are parent dirs and subdirs handled?
Lets assume i start my backups with some subdir with a bunch of data (lets say “/home/me/videos”) and on another day i choose to backup another subdir (lets say “/home/me/pictures”). Later i choose to backup my whole homedir ("/home/me"). What will happen? I understand that deduplication takes care that videos and pictures are not saved twice, but will they be transferred to the repo?
Is it wise to always backup the parent dir or can i lets say hourly backup up just my mail-file and my whole homedir daily?
Can i find and restore files without having to thing with which directory “value” i did my backup?
b) how much data is really transferred?
On the backup command i can see how much data restic found in my dir which is pending, also i can see the already backuped amount also i can see transfer speed and ETA and in the summary the average transfer speed and needed time. But when i do a new snapshot on the same dir, i can’t see the “delta” which was transferred/changed - did i miss any option?
c) is restic block based?
I am pretty sure, but i couldn’t find it in the user-docs. Means if i have a 4 GB mail file (of thunderbird f.e.) and it has been backed up once, is it smart enough to only transfer the changed blocks on next backup?
d) how to forget and prune in relation to a)?
Lets say i backed up my data like described in a) and then i do a restic forget --keep-last 1 --prune
, will i then have the last backed up file state of every file for the full homedir (/home/me) or will i have the last state of ever file for every folder i used for backup (/home/me, /home/me/videos, /home/me/pictures)?
EDIT: i forgot one question:
e) removing parent dir and adding very similar other parent dir, without having need to transfer all again, possible?
I have a pretty small uplink and i already transferred a big directory (lets say /abc). Now i will have a very similar directory (lets say /def) with a lot of same data and i have backed up both - is the amount of transferred data on backup of /def minimal (only different parts)?
Now i want to get rid of /abc in the backup to save space (because i never want to back it up again) and keep /def (which in fact would mean only remove the differences of /abc to /def). Is that even possible? And if yes, how?
(Background of that crazy question: I backing up my Windows, i started without VSS and now want to introduce it - which will have a different parent directory - but i dont want to transfer everything again)
Thanks a lot, restic is really a great tool!