billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.56k stars 333 forks source link

Automatically clone without user interaction #13

Closed onkelandy closed 9 years ago

onkelandy commented 9 years ago

He there! Thanks for the very nice script. Are you planning to include an additional flag that makes it possible to run the script as a crontab. I mean without having to confirm anything.. but logging the output in a specific logfile? That would be great! Thanks!

ghost commented 9 years ago

Dear onkelandy, I added a quiet mode (-q) to the script. A pull request was started right now. I use this quite mode now since March 2015 as a cron job.

 Version 1.3    2015/06/18
    * add -q (quiet) option for use as cron script
         -q only works with existing backups, 
         it won't initialize the destination SD card partitions with dd!
         Please initialize the destination SD card from the shell (by hand)
         for the first time.
         This is to protect you for accidentally overwriting a SD Card.
onkelandy commented 9 years ago

Awesome, crowzero - thanks alot! Seems to work fine!

jdrch commented 3 years ago

Just switched to using this after my -U crontab entry was failing.