Skip to content

Instantly share code, notes, and snippets.

@dtsmith2001
Last active March 29, 2021 15:59
Show Gist options
  • Save dtsmith2001/3f99b2124bdfb00178c81d54b9a06549 to your computer and use it in GitHub Desktop.
Save dtsmith2001/3f99b2124bdfb00178c81d54b9a06549 to your computer and use it in GitHub Desktop.

Revisions

  1. dtsmith2001 revised this gist Mar 29, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions backup-laptop.sh
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,6 @@

    set -e

    rsync -avz --progress --exclude={'.config/BraveSoftware/Brave-Browser/ShaderCache','.dbus','.config/Code/logs','.config/Code/CachedData','.config/BraveSoftware/Brave-Browser/Default/Service Worker/CacheStorage','.cache/thunderbird/eoovrbpw.default/cache2/entries','.cache/BraveSoftware/Brave-Browser/Default/Code Cache','.config/Code/Cache','.config/BraveSoftware/Brave-Browser/Default/GPUCache','.cache/BraveSoftware/Brave-Browser/Default/Cache','.config/BraveSoftware/Brave-Browser/GrShaderCache','.config/Code/GPUCache/data_1','.config/Slack/Cache','.config/Slack/GPUCache/data_1','.config/Slack/logs'} -e ssh /home/dtsmith /media/dtsmith/seagate/dtsmith-vallum
    rsync -avz --progress -e ssh /etc /media/dtsmith/seagate/dtsmith-vallum
    rsync -avz --progress -e ssh /opt /media/dtsmith/seagate/dtsmith-vallum
    rsync -avz --progress --exclude={'.config/Code/logs','.config/Code/CachedData','.config/BraveSoftware/Brave-Browser/Default/Service Worker/CacheStorage','.cache/thunderbird/eoovrbpw.default/cache2/entries','.cache/BraveSoftware/Brave-Browser/Default/Code Cache','.config/Code/Cache','.config/BraveSoftware/Brave-Browser/Default/GPUCache','.cache/BraveSoftware/Brave-Browser/Default/Cache','.config/BraveSoftware/Brave-Browser/GrShaderCache','.config/Code/GPUCache/data_1','.config/Slack/Cache','.config/Slack/GPUCache/data_1','.config/Slack/logs','.dbus','.config/BraveSoftware/Brave-Browser/ShaderCache','.config/Signal/GPUCache/data_1','.cache/mesa_shader_cache'} /home/dtsmith /media/dtsmith/seagate/dtsmith-vallum
    rsync -avz --progress /etc /media/dtsmith/seagate/dtsmith-vallum
    rsync -avz --progress /opt /media/dtsmith/seagate/dtsmith-vallum
  2. dtsmith2001 created this gist Mar 27, 2021.
    29 changes: 29 additions & 0 deletions backup-laptop.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    #!/usr/bin/env bash

    # MIT License
    #
    # Copyright (c) 2021 Dale Smith
    #
    # Permission is hereby granted, free of charge, to any person obtaining a copy
    # of this software and associated documentation files (the "Software"), to deal
    # in the Software without restriction, including without limitation the rights
    # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    # copies of the Software, and to permit persons to whom the Software is
    # furnished to do so, subject to the following conditions:
    #
    # The above copyright notice and this permission notice shall be included in all
    # copies or substantial portions of the Software.
    #
    # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    # SOFTWARE.

    set -e

    rsync -avz --progress --exclude={'.config/BraveSoftware/Brave-Browser/ShaderCache','.dbus','.config/Code/logs','.config/Code/CachedData','.config/BraveSoftware/Brave-Browser/Default/Service Worker/CacheStorage','.cache/thunderbird/eoovrbpw.default/cache2/entries','.cache/BraveSoftware/Brave-Browser/Default/Code Cache','.config/Code/Cache','.config/BraveSoftware/Brave-Browser/Default/GPUCache','.cache/BraveSoftware/Brave-Browser/Default/Cache','.config/BraveSoftware/Brave-Browser/GrShaderCache','.config/Code/GPUCache/data_1','.config/Slack/Cache','.config/Slack/GPUCache/data_1','.config/Slack/logs'} -e ssh /home/dtsmith /media/dtsmith/seagate/dtsmith-vallum
    rsync -avz --progress -e ssh /etc /media/dtsmith/seagate/dtsmith-vallum
    rsync -avz --progress -e ssh /opt /media/dtsmith/seagate/dtsmith-vallum