Skip to content

Instantly share code, notes, and snippets.

@nithril
Last active December 29, 2015 14:29

Revisions

  1. nithril revised this gist Nov 27, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Script CRON 2
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    /usr/bin/lftp ftp://xxx:yyy@addresse -e "mirror --delete --reverse /usr/local/lilactu/save / ; quit"
    /usr/bin/lftp ftp://login:pwd@host -e "mirror --delete --reverse /usr/local/lilactu/save / ; quit"
  2. nithril revised this gist Nov 27, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Script CRON 2
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    /usr/bin/lftp ftp://xxx:yyy@dedibackup-dc2.online.net -e "mirror --delete --reverse /usr/local/lilactu/save / ; quit"
    /usr/bin/lftp ftp://xxx:yyy@addresse -e "mirror --delete --reverse /usr/local/lilactu/save / ; quit"
  3. nithril revised this gist Nov 27, 2013. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  4. nithril created this gist Nov 27, 2013.
    3 changes: 3 additions & 0 deletions cron script 1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/bin/bash
    _now=$(date +"%Y_%m_%d_%H_%M");
    curl -X POST "http://localhost.fr:9200/_export?target=/usr/local/lilactu/save/${_now}.tar.gz"
    1 change: 1 addition & 0 deletions cron script 2
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    /usr/bin/lftp ftp://xxx:[email protected] -e "mirror --delete --reverse /usr/local/lilactu/save / ; quit"