Skip to content

Instantly share code, notes, and snippets.

@jeewangue
Forked from spyesx/rsync_backup.sh
Created March 19, 2020 01:58
Show Gist options
  • Select an option

  • Save jeewangue/3ebb79d79400c12fff9fa9179c30faaa to your computer and use it in GitHub Desktop.

Select an option

Save jeewangue/3ebb79d79400c12fff9fa9179c30faaa to your computer and use it in GitHub Desktop.

Revisions

  1. @spyesx spyesx revised this gist Sep 1, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rsync_backup.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Backup files
    #https://explainshell.com/explain?cmd=rsync+-azuv+--delete+--progress+--exclude+%27node_modules%27

    rsync -auvhp --delete --progress --exclude 'node_modules' [source] [destination]
    rsync -auvhp --delete --exclude=node_modules [source] [destination]

    # Remove all node_modules folders
    # https://explainshell.com/explain?cmd=find+.+-name+%22node_modules%22+-type+d+-prune+-exec+rm+-rf+%27%7B%7D%27+%2B
  2. @spyesx spyesx revised this gist Sep 1, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rsync_backup.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Backup files
    #https://explainshell.com/explain?cmd=rsync+-azuv+--delete+--progress+--exclude+%27node_modules%27

    rsync -azuv --delete --progress --exclude 'node_modules' [source] [destination]
    rsync -auvhp --delete --progress --exclude 'node_modules' [source] [destination]

    # Remove all node_modules folders
    # https://explainshell.com/explain?cmd=find+.+-name+%22node_modules%22+-type+d+-prune+-exec+rm+-rf+%27%7B%7D%27+%2B
  3. @spyesx spyesx revised this gist Feb 28, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rsync_backup.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Backup files
    https://explainshell.com/explain?cmd=rsync+-azuv+--delete+--progress+--exclude+%27node_modules%27
    #https://explainshell.com/explain?cmd=rsync+-azuv+--delete+--progress+--exclude+%27node_modules%27

    rsync -azuv --delete --progress --exclude 'node_modules' [source] [destination]

  4. @spyesx spyesx revised this gist Feb 28, 2018. 2 changed files with 9 additions and 1 deletion.
    1 change: 0 additions & 1 deletion remove_node_modules.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
    9 changes: 9 additions & 0 deletions rsync_backup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # Backup files
    https://explainshell.com/explain?cmd=rsync+-azuv+--delete+--progress+--exclude+%27node_modules%27

    rsync -azuv --delete --progress --exclude 'node_modules' [source] [destination]

    # Remove all node_modules folders
    # https://explainshell.com/explain?cmd=find+.+-name+%22node_modules%22+-type+d+-prune+-exec+rm+-rf+%27%7B%7D%27+%2B

    find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
  5. @spyesx spyesx revised this gist Feb 27, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion remove_node_modules.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    find . -name "nodemodules" -type d -prune -exec rm -rf '{}' +
    find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
  6. @spyesx spyesx created this gist Feb 27, 2018.
    1 change: 1 addition & 0 deletions remove_node_modules.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    find . -name "nodemodules" -type d -prune -exec rm -rf '{}' +