What would be the 'best' way to setup a 'simple' automatic backup between two OMV machines which are connected across the web thru VPN? I would like for everything located in a directory at location A to automagically backup to a directory at location B. thx
How to setup a remote backup
-
-
Rsync and a script scheduled via cron would be the most basic tools for the job.
-
Rsync and a script scheduled via cron would be the most basic tools for the job.
Sounds good. Would you happen to know where I can find instructions for setting up something like this? thx
-
-
No Versioning, no backup.
-
No Versioning, no backup.
Ah. I am running OMV4.
-
You can do versioned "snapshot" style backups using rsync. That is how I do my backups. Works fine. But I do it locally in my LAN. But it would work just as well remotely. Only new or modified files need to be synced. Unchanged files are hardlinked from a previous snapshot.
For information about how to use rsync, there are tons of pages online. I suspect that rsync is one of the best documented file utilities there are. Find some tutorial and do some experimenting.
-
-
You can do versioned "snapshot" style backups using rsync. That is how I do my backups. Works fine. But I do it locally in my LAN. But it would work just as well remotely. Only new or modified files need to be synced. Unchanged files are hardlinked from a previous snapshot.
For information about how to use rsync, there are tons of pages online. I suspect that rsync is one of the best documented file utilities there are. Find some tutorial and do some experimenting.
Thanks. I am reading up now on rsync.
-
You may also consider rsnapshot, which is also based on rsync and offers versioned backups.
-
You can do versioned "snapshot" style backups using rsync. That is how I do my backups. Works fine. But I do it locally in my LAN. But it would work just as well remotely. Only new or modified files need to be synced. Unchanged files are hardlinked from a previous snapshot.
Would you do it over SSH or use something else? I'm planning to do remote backup too and I still haven't sorted the security part.
Also, for remote backup would you use rclone or stick with rsync? I don't know the exact difference between the two.
-
-
Rsync usually works over ssh. If you connect your networks with a VPN you don't have to expose the ssh port to the internet.
-
https://www.bestbackups.com/bl…-backups-file-versioning/
This is what is meant by versioning
-
https://www.bestbackups.com/bl…-backups-file-versioning/
This is what is meant by versioning
... and that is what I do locally with rsync. As I backup I keep multiple versions of my files. Typically I keep 7 daily, 4 weekly and 3 monthly, but I can change that as I wish. So I can go back and retrieve a file (or a folder of files) as it was last Thursday. Or last month. Or the month before that.
I have posted it before, but here is my script for versioned rsync snapshot style backups.
https://github.com/WikiBox/snapshot.sh
Should be relatively straightforward to modify it for remote backups.
-
-
Would you do it over SSH or use something else? I'm planning to do remote backup too and I still haven't sorted the security part.
Also, for remote backup would you use rclone or stick with rsync? I don't know the exact difference between the two.
I haven't had reason to consider it. But I would probably start with a VPN and rsync. And see what performance I would get. Possibly use a local backup server to buffer the backups and sync from that.
-
Rsync usually works over ssh. If you connect your networks with a VPN you don't have to expose the ssh port to the internet.
I haven't had reason to consider it. But I would probably start with a VPN and rsync. And see what performance I would get. Possibly use a local backup server to buffer the backups and sync from that.
That means I would have to fire up a VPN and not be able to automate the process.
Given this is not easier to use SFTP with rclone? -
I'm using wireguard as VPN and leave it always on. Process is completely automated.
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!