Hi Dean,

> # Cleanup unnecessary files
> exec rm -rf home/weaner/.cache/chromium
> exec rm -rf home/weaner/.thumbnails
> exec rm -rf home/weaner/.local/share/Trash
> exec rm -rf home/weaner/.cache/thumbnails

+1 for using i3(1).  :-)  For those unfamiliar with it, the `exec' above
isn't like sh's exec and wouldn't be used in a shell script aiming to do
the same thing as that would cause the first rm(1) to replace the sh and
no more commands in the script would run.

> # Backup to NAS
> rsync -ua --delete /home/weaner path/to/backup
>
> I'd added the above to i3/config so it ran everytime I logged into the
> PC

Doesn't this mean that if you're logged out, or power cuts, and you want
to retrieve an accidentally deleted file from the NAS that you're racing
against i3's running of rsync with --delete when you log in?

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2017-07-04 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:[email protected] / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to