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! 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 Code: tar -zcf /destination_dir/filename /home/account/public_htmlexample:tar -zcf /home/account.tar.gz /home/account/public_html/extraction similartar -zxf 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? Use rsync to preserve everything.
Quote: rsync -avH /home/user1/public_html /home/user2/ why not do it using whm or cpanel(if you have access to either)? Quote: Originally Posted by Divvy 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:
Quote: tar -zcfp /destination_dir/filename /home/account/public_html
example:
tar -zcfp /home/account.tar.gz /home/account/public_html/
extraction similar
tar -zxfp
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! 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 Code: tar -zcf /destination_dir/filename /home/account/public_htmlexample:tar -zcf /home/account.tar.gz /home/account/public_html/extraction similartar -zxf 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? Use rsync to preserve everything.
Quote: rsync -avH /home/user1/public_html /home/user2/ why not do it using whm or cpanel(if you have access to either)? Quote: Originally Posted by Divvy 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:
Quote: tar -zcfp /destination_dir/filename /home/account/public_html
example:
tar -zcfp /home/account.tar.gz /home/account/public_html/
extraction similar
tar -zxfp