Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Can I start Ubuntu One synchronization from my 12.10 Ubuntu Desktop on specific time automatically everyday?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Referring to a similar question in Launchpad, it seems there is no official way of doing this.

But, you can always create a CRON job for doing this.

You can use the command-line tool u1sdtool for controlling your Ubuntu One Sync Daemon.

For eg, you can use:
u1sdtool --connect to connect to your Ubuntu One account and
u1sdtool --disconnect to disconnect from your Ubuntu One account

Say you want to start your synchronization at 3am in the morning and stop at 6am, then in effect you will be creating two CRON job entries.

0 3 * * * u1sdtool --connect
0 3 * * * u1sdtool --disconnect


References:
http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/
https://answers.launchpad.net/ubuntuone-client/+question/93972

share|improve this answer
    
You cannot do this with a cron job so easily. Commands run from cron have a pretty much empty environment, and so the commands won't be able to connect to the existing syncdaemon process, which u1sdtool communicates with via dbus. –  dobey Dec 9 '12 at 23:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.