best way to auto backup one file?

amrogers3

Gawd
Joined
Nov 7, 2010
Messages
641
Keep losing Safari history on osx because of user error. The current LestSession.pslist is cleared and I have lost all of my tabs. I want to backup this file to prevent loss in the future.

I don't need to run a full backup like with Time Machine, I just need to copy one file. I am thinking of running a cron job and just copying the pslist to iCloud every night.

What is the best way to copy this file over everynight without overwriting the one from the previous night?

Probably be easy with a script but I am not so good with code/scripting.
 
Try using google drive to automatically run the backup. Google drive keeps historical data whenever the file with the same name changes or gets written over. You can go into the history of when it was last usable and restore it from there.
 
Thanks for the suggestion.

I would rather not install anything on my computer to do the backup.

Upon further research, it appears "cp" with the -n option will work.

Anyone know if there is a better way to backup a single file to iCloud without installing any software?
 
Last edited:
Back
Top