#snapshot
Do you see what I see?
#doyouseewhatisee #caturday #kitty #cat #snapshot #b-w #photo #photography #photographer
#bash #Help > Delete a Folder in all #BTRFS snapshots.
So my server ran full, and it has years of snapshots, i actually do not want to delete, however i spotted (with the amazing ndcu) some 500GB of Backups i do not need. So i want to delete them.
apparently to do this you need to set each snapshot to writable and delete the file/folder you want. (see https://www.suse.com/support/kb/doc/?id=000019594)
they have also a script there doing this in a handle able manner. however it is only for Files and not for Folders. But i need to delete Folders. Ideally i want to be ably to provide the path to it so i do not delete some identically named folders elsewhere.
I tried to adapt the script but i do not quiet understand it.
original script
```
file=$1
while read a
do snapshot=$(echo ${a%%/$file})
btrfs property set $snapshot ro false
rm -f $a
btrfs property set $snapshot ro true
done < <(find /.snapshots/ -name $file)
**question 1:**
what does this line exactly do?
do snapshot=$(echo ${a%%/$file})
```
question 2
in what way/order does this "< <" syle of conding feed the paths to the loop?
because this (my for folders adapted test script)
file=$1
while read a
do snapshot=$(echo ${a%%/$file})
echo "$snapshot snpsho"
# btrfs property set $snapshot ro false
#rm -rf $a ## delete command adapted for folders
echo "foundet $a"
#btrfs property set $snapshot ro true
done < <(find /home/ -type d -path $file) ## find command adapted for folders and paths
this does not give me any output, altough the find command on its own totally does
rant
also why, do we still not have tools that do make sense with btrfs filesystems. like:
- gui option in filemanager to delete a file/folder though all spanshots
- gui option in filemanager to easily compare/resore older versions of a file. (like windows)
this should be quiet easy and would be heavily helpfull...
Ma rue est un boulevard
Mon boulevard est une autoroute urbaine
On y entre et on en sort
la mode est aux pétarades
même avec les fenêtres fermées, pour l’hiver
j'entends le défoulement des dépressés
les sub-woofers qui vibrent au travers ma fenêtre
Les beats nord-américains
et le téléphone sonna, soni
Et what the fuck!
#snapshot
Built in the early 1380s, this is what it looked like in 1612
But then,
#architecture #romanticism #neo-gothic
#brussels #bruxelles #brussel
#photo #mywork #snapshot
The "Flying Saucer" is an important landmark for me when walking. It's the communications tower of RTBF/VRT
May solar policy snapshots A guide to recent legislation and research throughout the country.
Gov. Inslee signs bill to fund $100 million of community solar in Washington Olympia, Washington Gov. Jay Inslee signed into law a bill creating a new low-income community solar program in Washington state starting in 2023. The state will provide grants to cover up to 100% of community solar project costs to help close the…
https://www.solarpowerworldonline.com/2022/05/may-2022-solar-policy-snapshots/
#news, #solar, #policy, #snapshot
I'm working on a #BASH script that prepares #Fedora (which uses #BtrFS) to be able to use #Snapper properly (for taking #snapshots and being able to roll them back). With a complete separation between the system's side and the user's side.
Keep in mind, it's not finished yet, so please do not use it on main systems.
If anyone would like to contribute, you're more than welcome to do so.
https://gitlab.com/ds.shell-scripts/ds.buttery-snaps