lobaro / restic-backup-docker

A docker container to automate backups with restic
Apache License 2.0
330 stars 114 forks source link

Option to set the backup folder. #85

Open zimbres opened 6 months ago

zimbres commented 6 months ago

Sometimes might be necessary to specify a folder inside the mounted volume. For example to backup home-assistant backups that is stored in a folder "backups" inside the volume.

Can I push the PR? https://github.com/zimbres/restic-backup-docker

zimbres commented 6 months ago

I also added an option to Action in order to build image for multi-platform

Jumanjii commented 5 months ago

Hi there 👋 I'm just starting to use this project (and so restic), but I was gonna do the exact same modification to be able to leverage the "path" feature.

The benefit would be not to be required to download the full snapshot containing all data of all backups if needed.

@zimbres maybe if you create a PR it will be easier for maintainers to review and merge it 🙏 Also, maybe it is worth mentioning that your BACKUP_SOURCES can receive a list of directories to replicate restic backup folder_1 folder_2.... that end up in

$ restic snapshots                                                                                                                                                           
repository 347b3b35 opened (version 2, compression level auto)
ID        Time                 Host        Tags        Paths
-------------------------------------------------------------------------------------------------------------
6ed7c417  2024-01-28 21:10:40  pc                    /data/folder_1
                                                     /data/folder_2
-------------------------------------------------------------------------------------------------------------

I'm sharing some ideas and hope that maintainers will like them too so I'll be able to use your feature from upstream soon 😅