Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: Start Time Machine backups now in Terminal System 10.5
Backups every hour are fine, but what if you want to run a backup before taking your laptop somewhere? The following command in Terminal will start a backup immediately: The same Resources directory has two interesting .plist files as well. StdExclusions.plist contains a list of all the folders and files that won't be backed up, while System.plist appears to be a list of all the files that are considered part of the standard release of OS X.

The fvimagetool app in that directory is probably the command which builds temporary disk images when you are doing backups over the network, but I haven't investigated that one fully yet.

[robg adds: While it's easy to start a backup now if you're in the GUI (control-click on the Time Machine icon in the dock or sidebar and choose Backup Now), the above may be useful to those who would like to start a backup remotely via ssh, or for use in scripting.]
    •    
  • Currently 4.17 / 5
  You rated: 5 / 5 (6 votes cast)
 
[30,758 views]  

10.5: Start Time Machine backups now in Terminal | 9 comments | Create New Account
Click here to return to the '10.5: Start Time Machine backups now in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Start Time Machine backups now in Terminal
Authored by: barrysharp on Nov 15, '07 08:29:11PM

This is useful. It would be even more useful if there was a way to force a Backup Now when the TM pref panel has the OFF-ON slider in the OFF position. There are many people who want to avoid hourly backups done by default and adopt a single backup per day. Thus a cron script can be launched once per day to force the daily backup.

---
Regards... Barry Sharp



[ Reply to This | # ]
10.5: Start Time Machine backups now in Terminal
Authored by: barrysharp on Nov 15, '07 09:36:48PM

Actually to do what I suggested - which is to invoke a backup with the TM panel's OFF-ON switch in the OFF position one simply executes

/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd-helper

Thus it's possible to configure TM backups OFF and once per day execute the above command via cron or some other similar facility.

---
Regards... Barry Sharp



[ Reply to This | # ]
10.5: Start Time Machine backups now in Terminal
Authored by: barrysharp on Nov 15, '07 10:07:32PM
BTW - Using CronniX at

http://h775982.serverkompetenz.net:9080/abstracture_public/projects-en/cronnix/

makes this real easy.

---
Regards... Barry Sharp

[ Reply to This | # ]

-auto ?
Authored by: Hal Itosis on Nov 16, '07 07:45:30AM
Wait a minute... how did you "discover" the -auto option?

What *other* options might there be?
Can we disable backups from a script,
and then re-enable them when we want?
[I.e., prevent a backup from running
during a shell script for example.]

-HI-

[ Reply to This | # ]
10.5: Start Time Machine backups now in Terminal
Authored by: Brethil on Nov 16, '07 10:36:43AM

Why not just right click on the Time Machine's Dock Icon and chose "Back Up Now?" (Assuming you have Time Machine in your dock; I have because it's an easy way to call it when it's needed)



[ Reply to This | # ]
10.5: Start Time Machine backups now in Terminal
Authored by: allanmarcus on Apr 06, '08 09:21:39PM

some people (like me) want to have TM run at a specific time, not hourly. This command let's us script when TM runs.



[ Reply to This | # ]
10.5: Start Time Machine backups now in Terminal
Authored by: nazgul on Nov 16, '07 01:21:50PM

To find the command-line options I did two things.

1. Run the "strings" command on the file (piped to "more").
2. Meander over to /System/Library/LaunchDaemons and see how the different backup applications are being launched. That's where you'll find, for instance, that one of them is automatically launched anytime a disk is mounted.



[ Reply to This | # ]
10.5: Start Time Machine backups now in Terminal
Authored by: ptone on Nov 11, '08 11:57:08AM

Now if someone knows how to abort a time machine backup from the command line.....



[ Reply to This | # ]
10.5: Start Time Machine backups now in Terminal
Authored by: david-bo on Oct 16, '10 03:06:43AM

Did you ever figure out how to abort or pause an ongoing backup?

---
link



[ Reply to This | # ]