Skip to content

Instantly share code, notes, and snippets.

@fabienhinault
Last active September 13, 2020 13:22
Show Gist options
  • Save fabienhinault/9430afc42be8f7b0bf270bb61b4688ae to your computer and use it in GitHub Desktop.
Save fabienhinault/9430afc42be8f7b0bf270bb61b4688ae to your computer and use it in GitHub Desktop.
#!/bin/bash
# place it under ~/.local/share/nautilus/scripts/
# and make it executable chmod u+x nautilus_backup.bash
for f in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do
cp -a $f $f~$(date --utc '+%Y-%m-%d_%H_%M_%S')
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment