Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone and Update Repository #683

Closed
htho opened this issue Feb 19, 2016 · 5 comments
Closed

Clone and Update Repository #683

htho opened this issue Feb 19, 2016 · 5 comments

Comments

@htho
Copy link

htho commented Feb 19, 2016

Is there a way to clone and update/sync a repository, since there is no redundancy?

My scenario: I create daily backups of my machine to a repository on another disk. Every once in a while, I want to copy this repository to yet another disk. Deleting the old copy and creating a new one on each backup-of-the-backup is a waste of time. It would be nice to have a clone/update function, that simply updates an existing clone of a repository.

@jungle-boogie
Copy link
Contributor

So you would want borg to update an existing backup instead of using prune to delete it?

@htho
Copy link
Author

htho commented Feb 20, 2016

No. I am not talking about copying single backups, but about copying a whole repository containing a set of previous backups. I want to copy the whole repository to another disk.

There must be something more efficient than:

$ rm -rf /mnt/backup_disk_fallback/backup_repo
$ cp -a /mnt/backup_disk/backup_repo /mnt/backup_disk_fallback/backup_repo

I thought about using rsync, but I am not sure if this is efficient since I don't know how much the blocks and names change.

$ rsync --archive --delete /mnt/backup_disk/backup_repo /mnt/backup_disk_fallback/backup_repo

@ThomasWaldmann
Copy link
Member

See there:

http://borgbackup.readthedocs.org/en/latest/faq.html#can-i-copy-or-synchronize-my-repo-to-another-location

@htho
Copy link
Author

htho commented Feb 20, 2016

I missed that one. I'm sorry for bothering you with this frequently asked question.

@ThomasWaldmann
Copy link
Member

No problem, it is a relatively new entry and might be not visible in the stable docs you read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants