Results 1 to 3 of 3

Thread: Scheduling a task to run weekly, as a normal (non-root) user

  1. #1
    Join Date
    Apr 2007
    Location
    Copenhagen
    Beans
    146
    Distro
    Ubuntu 13.04 Raring Ringtail

    Scheduling a task to run weekly, as a normal (non-root) user

    Hi

    I'm trying to get my backup script to run every week, but as a normal user, and not as root as it is done when the script is placed in /etc/cron.weekly.
    Anacron fits my needs in the sense that it doesn't require my computer to always be on, as opposed to cron, and will just run my script when it can, but at the most each week.
    Cron fits my needs in the sense that I can run the script as the user I am logged in as. The particular script backs up my home directory with rdiff-backup, and it is very convenient that I am the owner of that backup, since when root performs the backup, I am unable to browse my own backup files and must use "sudo" to do this.

    Is there a way to let me use the feature of anacron that allows my computer to not always be on, but still get a weekly execution, and also run the script as a normal (non-root) user?

    Thank you!

  2. #2
    Join Date
    Apr 2007
    Location
    Copenhagen
    Beans
    146
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Scheduling a task to run weekly, as a normal (non-root) user

    A refined Google search yielded the following solution:
    http://ubuntuforums.org/showthread.php?t=353824 (last post)

    I have set it up, and will report back the results in a couple of weeks, to see if it does as intended.

  3. #3
    Join Date
    Apr 2007
    Location
    Copenhagen
    Beans
    146
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Scheduling a task to run weekly, as a normal (non-root) user

    It works like a charm!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •