Skip to content

Commit

Permalink
Remove global and group permissions for backup folder
Browse files Browse the repository at this point in the history
Fixes #15
  • Loading branch information
James Barnett committed Nov 29, 2016
1 parent c22aae2 commit b1c8121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/snap-sync
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ for x in $selected_configs; do
read -r -p "Enter name of directory to store backups, relative to $selected_mnt (to be created if not existing): " mybackupdir
printf "This will be the initial backup for snapper configuration '%s' to this disk. This could take awhile.\n" "$x"
BACKUPDIR="$selected_mnt/$mybackupdir"
mkdir -p "$BACKUPDIR"
mkdir -p -m700 "$BACKUPDIR"
else
mybackupdir=$(snapper -c root list -t single | awk -F"|" '/'"$selected_uuid"'/ {print $5}' | awk -F "," '/backupdir/ {print $1}' | awk -F"=" '{print $2}')
BACKUPDIR="$selected_mnt/$mybackupdir"
Expand Down

1 comment on commit b1c8121

@Noor1234500
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • [ ]

Please sign in to comment.