[mythtv-users] mythconverg_backup.pl --rotate 10

Michael T. Dean mtdean at thirdcontact.com
Sun Apr 3 11:37:47 UTC 2011

On 04/03/2011 05:44 AM, Richard Morton wrote:
>> echo "rotate=20">>  $HOME/.mythtv/backuprc
>> Then, don't specify --rotate on the command line.
> $ ls /var/lib/mythtv/backups
> mythconverg-1254-20110328033803.sql     mythconverg-1254-20110402033802.sql.gz
> mythconverg-1254-20110329033801.sql     mythconverg-1254-20110403033802.sql.gz
> mythconverg-1254-20110331221833.sql.gz
> $ ls .mythtv
> MythBrowser  channels    mysql.txt  remotecache  themes
> backuprc     config.xml  osdcache   themecache   tmp
> $ cat ~/.mythtv/backuprc
> rotate=20

I'm still waiting for the --verbose output I mentioned before...  :)

> and doing sudo crontab -e (with the same user) has the following line
> 38 3 * * * /usr/share/mythtv/mythconverg_backup.pl
> so unless cronruns with a different user???

But when you run "sudo crontab -e", you're running crontab as the root 
user, not the current user, so you're editing root's crontab--meaning 
that the command will run as root.

If you run crontab -e (without sudo), you're running crontab as your 
current user.  So, either do that or make sure root also has an 
appropriate $HOME/.mythtv/backuprc.


More information about the mythtv-users mailing list