Modifier l'intervalle sauvegarde timeMachine Yosemite

EricM

Membre actif
28 Juillet 2004
735
34
56
Grimaud Var France
Bonjour,

Je souhaite modifier avec le Terminal l'intervalle de sauvegarde de Timemachine sous Yosemite à 6 heures au lieu d'une heure. J'ai modifié le fichier com.apple.backupd-auto.plist dans /System/Library/LaunchDaemons/ avec la commande :
sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 21600

Mais ça ne fonctionne pas, j'ai toujours une heure de sauvegarde de programmée. Merci

Voici le fichier .plist édité, à la fin il y a bien la valeur 21600.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.backup.launcher</string>
<key>Disabled</key>
<true/>
<key>EnablePressuredExit</key>
<true/>
<key>EnableTransactions</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.apple.backupd-auto</string>
<key>LaunchEvents</key>
<dict>
<key>com.apple.xpc.activity</key>
<dict>
<key>com.apple.backupd-auto</key>
<dict>
<key>AllowBattery</key>
<true/>
<key>Delay</key>
<integer>3600</integer>
<key>GracePeriod</key>
<integer>1800</integer>
<key>Interval</key>
<integer>3600</integer>
<key>PowerNap</key>
<true/>
<key>Priority</key>
<string>Utility</string>
<key>Repeating</key>
<true/>
</dict>
</dict>
</dict>
<key>MachServices</key>
<dict>
<key>com.apple.backupd-auto</key>
<true/>
<key>com.apple.backupd-helper.status</key>
<dict>
<key>HideUntilCheckIn</key>
<true/>
</dict>
</dict>
<key>POSIXSpawnType</key>
<string>Background</string>
<key>ProgramArguments</key>
<array>
<string>/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd-helper</string>
<string>-launchd</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>21600</integer>
</dict>
</plist>
 
Ta modification a bien fonctionné. Mais ce n'est peut-être pas StartInterval qu'il faut changer mais Interval, par exemple ?
 
Bonsoir, j'ai gardé la valeur 21600 de StartInterval et appliqué la même à Interval. Je verrai bien à l'usage. J'ai copié une partie du log avec Timecapsule. Je pense qu'il y a un problème avec.

01/12/2014 07:12:42,845 com.apple.backupd[15065]: Attempting to mount network destination URL: afp://Eric;AUTH=SRP@Time%C2%A0Capsule%20Eric._afpovertcp._tcp.local/TimeCapsule
01/12/2014 07:13:14,219 com.apple.backupd[15065]: NAConnectToServerSync failed with error: 64 (Host is down) for url: afp://Eric;AUTH=SRP@Time%C2%A0Capsule%20Eric._afpovertcp._tcp.local/TimeCapsule
01/12/2014 12:57:30,775 mds[34]: (Volume.Normal:2464) volume:0x7f8c610bd000 ********** Bootstrapped Creating a default store:1 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/TimeCapsule
01/12/2014 13:02:52,119 com.apple.backupd[55365]: Attempting to mount network destination URL: afp://Eric;AUTH=SRP@Time%C2%A0Capsule%20Eric._afpovertcp._tcp.local/TimeCapsule
01/12/2014 13:03:22,240 com.apple.backupd[55365]: NAConnectToServerSync failed with error: 64 (Host is down) for url: afp://Eric;AUTH=SRP@Time%C2%A0Capsule%20Eric._afpovertcp._tcp.local/TimeCapsule
01/12/2014 13:03:22,241 com.apple.backupd[55365]: Error 18 resolving destination during verification: afp://Eric;AUTH=SRP@Time%C2%A0Capsule%20Eric._afpovertcp._tcp.local/TimeCapsule
01/12/2014 13:06:15,000 kernel[0]: AFP_VFS afpfs_unmount: /Volumes/TimeCapsule, flags 0, pid 56067
01/12/2014 13:47:35,139 com.apple.backupd[64783]: Attempting to mount network destination URL: afp://Eric;AUTH=SRP@Time%C2%A0Capsule%20Eric._afpovertcp._tcp.local/TimeCapsule
01/12/2014 13:48:00,017 mds[34]: (Volume.Normal:2464) volume:0x7f8c6182b600 ********** Bootstrapped Creating a default store:0 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/TimeCapsule
01/12/2014 13:48:00,179 com.apple.backupd[64783]: Mounted network destination at mount point: /Volumes/TimeCapsule using URL: afp://Eric;AUTH=SRP@Time%C2%A0Capsule%20Eric._afpovertcp._tcp.local/TimeCapsule
01/12/2014 13:48:14,401 com.apple.backupd[64783]: Disk image /Volumes/TimeCapsule/MacBook Pro.sparsebundle mounted at: /Volumes/Time Machine Backups
01/12/2014 16:28:41,218 com.apple.backupd[64783]: Ejected Time Machine disk image: /Volumes/TimeCapsule/MacBook Pro.sparsebundle
01/12/2014 16:28:41,000 kernel[0]: AFP_VFS afpfs_unmount: /Volumes/TimeCapsule, flags 0, pid 98363
01/12/2014 18:33:28,106 com.apple.backupd[98930]: Attempting to mount network destination URL: afp://Eric;AUTH=SRP@Time%C2%A0Capsule%20Eric._afpovertcp._tcp.local/TimeCapsule
01/12/2014 18:33:52,151 com.apple.backupd[98930]: Mounted network destination at mount point: /Volumes/TimeCapsule using URL: afp://Eric;AUTH=SRP@Time%C2%A0Capsule%20Eric._afpovertcp._tcp.local/TimeCapsule
01/12/2014 18:33:52,158 mds[34]: (Volume.Normal:2464) volume:0x7f8c648dc800 ********** Bootstrapped Creating a default store:0 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/TimeCapsule