• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Remote backup over SSH

lvalics

Silver Pleskian
Plesk Guru
Hi all,

Because I don't use PLSK backup manager, we find out a small linux command line what can help a lot of people to make backup over SSH.

tar cvz foldername | ssh [email protected] 'dd of=test_backup.tar.gz'

This will archive folder with foldername and will archive it direcctly to other server via SSH.

Example

tar cvz httpdocs | ssh [email protected] 'dd of=/backup/domainname_backup_19jan2006.tar.gz'

Hope this help someone.
Of course this can be more advanced to get all domains one by one and archive, transfer, but only httpdocs (or httpsdocs) and subdomains ...
Then can be also backup MySQL (by stopping MySQL) and if you want, need. etc/ and /qmail settings.
 
Back
Top