Skip to content

Instantly share code, notes, and snippets.

@disafronov
Last active May 9, 2025 20:50
Show Gist options
  • Select an option

  • Save disafronov/cf604aeb0898cdbeae6450be2b36d06e to your computer and use it in GitHub Desktop.

Select an option

Save disafronov/cf604aeb0898cdbeae6450be2b36d06e to your computer and use it in GitHub Desktop.

Revisions

  1. Dmitriy Safronov revised this gist Nov 21, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion timeshift.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/usr/bin/env sh

    if [ -z "$1" ]; then
    echo "Specify temp dir!"
    echo "Specify Timeshift temp dir!"
    exit 1
    fi

  2. Dmitriy Safronov created this gist Nov 21, 2024.
    14 changes: 14 additions & 0 deletions timeshift.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/usr/bin/env sh

    if [ -z "$1" ]; then
    echo "Specify temp dir!"
    exit 1
    fi

    rsync -avH \
    --numeric-ids \
    --progress \
    --delete-before \
    --log-file="timeshift.log" \
    "/run/timeshift/$1/backup/timeshift/" \
    timeshift/