Initial commit
This commit is contained in:
commit
0eca44d9c2
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
set scriptdir (dirname (status --current-filename))
|
||||
|
||||
source $scriptdir/config.fish
|
||||
|
||||
if test -d $subvoldir
|
||||
echo "Backup directory already exists, aborting..."
|
||||
exit
|
||||
end
|
||||
|
||||
mkdir $subvoldir
|
||||
|
||||
for subvol in (eval $scriptdir/get-subvols.fish)
|
||||
echo $subvol
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/fish
|
||||
sed 's/\//-/g'
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
set subvoldir "/var/backups/subvols"
|
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/fish
|
||||
cat /etc/fstab | grep subvol | sed 's/.*subvol=//;s/)//;s/\t\| \|0//g'
|
Loading…
Reference in New Issue