1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Remote backup over SSH

Discussion in 'Plesk for Linux - 8.x and Older' started by lvalics, Jan 18, 2006.

  1. lvalics

    lvalics Silver Pleskian Plesk Guru

    36
    43%
    Joined:
    Jun 20, 2003
    Messages:
    963
    Likes Received:
    32
    Location:
    Romania
    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 username@IP.xx.xx.xx '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 username@111.111.111.111 '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.
     
Loading...