Activity Stream
48,167 MEMBERS
62146 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Member

    Default how to backup the home directory using ssh?

    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 Reviewed by Divvy on . how to backup the home directory using ssh? 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! Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    xsl.tel xsltel.com
    no you can't with a command like pkgacct. but you can do that with tar

    tar -cf homedir.tar /path/to/homedir

    anyway still you will have to use chown command to change permissions

    Highest Regards
    Mohammed H

  4.     
    #3
    Member
    Code: 
    tar -zcf /destination_dir/filename /home/account/public_html
    example:
    tar -zcf /home/account.tar.gz /home/account/public_html/
    
    extraction similar
    tar -zxf
    "Only great minds can afford a simple style."

  5.     
    #4
    Member
    Thank you guys!
    Hmmm but I need to preserve files and folders permissions.
    How about a command to copy the files from one account to another?

  6.     
    #5
    Member
    Use rsync to preserve everything.

    rsync -avH /home/user1/public_html /home/user2/
    Linux System Administrator
    Server Management at affordable cost.
    linuxhostingsupport.net | MSN:madaboutlinux@hotmail.com

  7.     
    #6
    Banned
    why not do it using whm or cpanel(if you have access to either)?

  8.     
    #7
    Respected Member
    Quote Originally Posted by Divvy View Post
    Thank you guys!
    Hmmm but I need to preserve files and folders permissions.
    How about a command to copy the files from one account to another?
    Just add p to the tar command.

    using jase example:
    tar -zcfp /destination_dir/filename /home/account/public_html
    example:
    tar -zcfp /home/account.tar.gz /home/account/public_html/

    extraction similar
    tar -zxfp

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 17th Apr 2012, 06:55 AM
  2. Unable to restore backup using Wp complete backup
    By Jayzzy in forum Webmaster Discussion
    Replies: 13
    Last Post: 25th Mar 2012, 03:32 PM
  3. Welcome home...
    By mahjong in forum Introductions
    Replies: 4
    Last Post: 5th Jun 2010, 01:46 AM
  4. Hello All , a new guy at home
    By maniac-1979 in forum Introductions
    Replies: 2
    Last Post: 27th Feb 2010, 02:19 PM

Tags for this Thread

BE SOCIAL