How do I backup the Puplic_html folder using a corn job ?

mac99

Member
Nov 29, 2006
9
0
151
Hello,

I would like to backup only the folder puplic_html using a corn job, so what should I type in the command line ??

I really appreciate it if someone replied .

Thanks
 

mac99

Member
Nov 29, 2006
9
0
151
Really thanks a lot,

But this command synchronizes folders ( puplic_html, and distention folder ), I wanted to zip the puplic_html for a backup using corntab.

So, would you please help me with this command.

Thanks
 

mac99

Member
Nov 29, 2006
9
0
151
after a long search i found this line, and it worked,

tar -czf /home/user/distenation/public_html.gz.tar /home/user/public_html

also i could use tar - cvf command, for a public_html.tar backup.

but i'll try your line.

thanks a lot
 

mctDarren

Well-Known Member
Jan 6, 2004
665
9
168
New Jersey
cPanel Access Level
Root Administrator
corn job sounds obscene... sorry, just made me laugh alot for some reason. Keep in mind with this cron job that you will be taking up alot of space within the users accounts. Be careful not to put people over their limit. :)
 

mac99

Member
Nov 29, 2006
9
0
151
I thought the same, but when I tried, I noticed that it overwrites the existing file.

So, there is no fear to lose a lot of space.

Thanks for that notice