I'd like to schedule a cronjob on my server to backup the entire public_html directory daily. I am logged into cPanel and I am on the Cron Job page where I have it set to run this command everyday at 2am: tar -vcf /site_backup.tar /public_html/
Is this command sufficient for what I want to do? I want to store the contents of public_html in the site_backup.tar that resides in the root directory (one level up from public_html). Do I need to provide anything else in the command for it to run correctly?