Skip to content

Instantly share code, notes, and snippets.

@vasilisvg
Last active December 4, 2020 04:48

Revisions

  1. vasilisvg revised this gist Dec 31, 2012. 2 changed files with 2 additions and 1 deletion.
    1 change: 1 addition & 0 deletions more.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing.
    You can exclude folders if you want to. You probably want to exclude giant cache folders.

    You should have a similar script.
    2 changes: 1 addition & 1 deletion site-to-dropbox.command
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    rsync -a --del -e ssh user@example.com:~/webdirectory/ ~/myname/Dropbox/Backups/webapps
    rsync --exclude="w3tc/" -a --del -e ssh user@example.com:~/webdirectory/ ~/myname/Dropbox/Backups/webapps
    cd ~/myname/Dropbox/Backups/webapps
    dt=$(date +%y%j)
    tar czf webapps$dt.tar.gz webapps
  2. vasilisvg revised this gist Apr 18, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion more.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    The above script is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing.
    The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing.

    You should have a similar script.
  3. vasilisvg created this gist Apr 18, 2012.
    3 changes: 3 additions & 0 deletions more.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    The above script is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing.

    You should have a similar script.
    4 changes: 4 additions & 0 deletions site-to-dropbox.command
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    rsync -a --del -e ssh user@example.com:~/webdirectory/ ~/myname/Dropbox/Backups/webapps
    cd ~/myname/Dropbox/Backups/webapps
    dt=$(date +%y%j)
    tar czf webapps$dt.tar.gz webapps