@fabieng
In response to your last questions, I have to say that I can understand your questions - but I also have to place them into a different context.
The proper context for
local versus remote backups is in your case :
- local storage : actual backup
- remote storage : static backups of the local backup files, as present on the local server
In essence, the context is that the remote storage is intended only to keep
remote copies of
local backup files, in case the local disks (or the local server) are failing.
The before mentioned context implies that you
- can just run a simple cron script on the
local server to transfer
existing local backups to a
remote server on a daily basis,
- do not have any additional disk space usage on the
local server - the
local backups to be transferred elsewhere are already present and are rotated every x days,
- can just rsync
local backup files to a
remote server - and optionally run a daily cron script to delete files on the
remote server that are older than y days.
Note the difference between x and y days, the values can be chosen to your own liking - in accordance to the retention policy that you want to achieve.
Restoring is as simple as rsyncing the
remote backup files (on the remote server) to the
local server - just put them in /var/lib/psa/dumps - Plesk will recognize them.
Nevertheless, restoring would also require that you
1 - move the existing backup files on the local server to a separate directory : just protect them!
OR
2 - that you make some manual changes to specific files related to the local Plesk backups.
Method 1 is the safe and easy option, whereas method 2 is the complex and thorough option - anyway, Plesk requires that the Plesk Backup Manager can read from one or more specific files, containing a sort of index of the various compressed files that compose the backup.
Method 1 will prevent a complex restore method and you can move the backup files back after the restore process.
Method 1 and 2 both require some careful processing of backup files........ so there is always a more easy solution.
For instance, when using the rsync method, one can also simply copy all files from the directories related to mail, the domains and/or the databases - this is not equal to rsyncing static and compressed backup files, this is more equivalent to rsyncing
changed files only - which is quite convenient!
Nevertheless, when choosing
any rsync based method with compressed backup files, one has to be aware that one
mimicks the default migration process.
In short, the most easy solution would be installing a second Plesk instance and just running Plesk Migration Manager on a daily basis.
The latter solution also has the advantage that you would have a
live domain whenever your main server fails to work - you are creating some minimal HA setup.
In conclusion, there are many solutions to solve your current challenge related to (lack of) disk space and the desire to backup domains or subscriptions remotely.
To be honest, I would simply say -entering again in the same circle of reasoning as before : just install a FTP server on the remote server! Easy, quick and painless.
Hope the above helps a (tiny) bit.
Kind regards........