How to restore a specific folder to a specific one?

Hi,
Could you please help me to find the right syntax to restore a specific folder to a specific one?

I tried this command: ‘restic -r rclone:gdrive:Backup/Restic/home restore --include /home/sytrix/.icedove/profile --target ~/.thunderbird/ latest’.

But it creates a “/home/sytrix/.icedove/profile” in my ~/.thunderbird/ folder, instead of just creating a “profile” folder into “~/.thunderbird/”.

Thanks for your kind help :slight_smile:

1 Like

Please check if using latest:/home/sytrix/.icedove/profile instead of latest gives you what you expect.

1 Like
restic -r rclone:gdrive:Backup/Restic/home restore --target ~/.thunderbird/profile/ latest:/home/sytrix/.icedove/profile

seems to work as expected. Thanks for your kind help!

2 Likes

May I ask how your experience has been using Google Drive as a repository? I have had no problems so far.

I use restic with rclone to backup to Google Drive for a small repository of about 5GB. It works but I constantly get these errors rclone: "reason": "RATE_LIMIT_EXCEEDED".` The backup continues and always succeeds after several HTTP retries. A similar rclone/restic backup to MS Onedrive does not return any errors. The GDrive repo passes restic repo check without errors.

1 Like

Not a rclone error, but --tpslimit must be what you’re looking for. You can check this thread about rclone + gdrive. I have no idea how to pass this parameter via restic, but if you have a local repo and you rclone sync it to gdrive, you should be fine.

Edit: typo.

1 Like
restic backup ... -o "rclone.args=serve restic --stdio --tpslimit n --other-flag[s]" ...

or set rclone environment variables, below example for heavy throttling:

export RCLONE_TPSLIMIT = "5"
export RCLONE_TPSLIMIT_BURST = "0"
export RCLONE_TRANSFERS = "1"
export RCLONE_CHECKERS = "1"

In case of GoogleDrive make sure to configure your own client_id as per rclone docs

2 Likes

@rustycanb @bazinga @kapitainsky Thanks for the info

The maximum repository I’m using with Google Drive so far is 1 TB and I haven’t had any problems, but the checks I do are of 5% of the total repository. I haven’t needed a complete recovery.

I have always used the documented way which always created additional /path/to/restore/...

restic -r rclone:gdrive:Backup/Restic/home restore --target ~/.thunderbird/profile/ latest:/home/sytrix/.icedove/profile

This should be documented in the restic docs