how to backup the home directory using ssh?

Discussion in 'Site & Server Administration' started by Divvy, Aug 16, 2011.

  1. #1
    I know i can back up the home directory + databases of one account in cPanel, but is there a command like pkgacct that will backup only the home directory? (without databases)

    Basically, I want to transfer all file from one account to another, with same files/folders permissions.

    If anyone have any suggestion for me, please post here :)

    Thank you!
     
    Divvy, Aug 16, 2011 IP
  2. helpinghost

    helpinghost Active Member

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #2
    I would cd into the directory and do a tar -czvf . ../filename.tar.gz
    Now you can transfer the file via scp to the new location and untar it.
     
    helpinghost, Aug 17, 2011 IP
  3. DailySoft4U

    DailySoft4U Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can use tar or zip command to compress any folder
     
    DailySoft4U, Aug 26, 2011 IP