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
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
Code:rsync -auv /home/user_name/public_html /backup-destination
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
Try this then:
Code:cp -r /home/user/public_html /destination | gzip -r /destination/public_html
Last edited by kernow; 11-29-2006 at 08:30 AM. Reason: correction
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
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.![]()
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