muesli / docker-backup

A tool to create & restore complete, self-contained backups of Docker containers
MIT License
311 stars 41 forks source link

Backup & Restore files - copy volumes and included bind files to folder, restore files from same folder. #26

Open andrewleech opened 3 years ago

andrewleech commented 3 years ago

This is conceptually similar to the tar output, but rsync copy all the files to a folder instead.

On a computer where backup is re-run regularly, only changed files will be copied so a significant speed-up will be seen.

It also means that if a third party incremental-style backup is used on the computer, it can be pointed to the backup folder of files and only backup changes, rather than the entire tar each time.

This folder can be restored from, unlike when a third party tool is used via the --launch arg.

Edit: I think there's an issue with this still in the rsync args, the owner attributes on the files aren't being preserved currently which then breaks any restored containers that use non-root users internally.