- This is a collection of TUI-based scripts that do things.
- All scripts depend on
scripts.lib&scripts.cfg, best practice is to download the repository. - Make scripts executable if needed with:
chmod +x *.
If you're mirroring from left to right and sometimes add exclusions that have been synced before, you potentially end up with unwanted files on the right side that will rot there until eternity unless you delete them manually one by one.
This script allows you to delete them automatically. Simply run it with your .ffs_gui-file as parameter. It will create a modified copy of it, by pointing the left side to an empty folder and turning all exclusions into inclusions. This creates a scenario in which FFS mirrors "nothing" to all originally excluded files and therefore deleting them on the right side when executing the synchronization.
- Make sure whiptail is installed.
- Make sure
FFS_PATH_BINis set inscripts.cfgaccordingly.
- Start script with
./ffs.sh "/path/to/config_file.ffs_gui", this will open FFS with a modified.ffs_guifile. - Click
Compareand all leftover files should show up. - Quadruple-check if those files can be deleted safely (It works perfectly for me, but I didn't do a whole lot of testing).
- Click
Synchronizeto delete them. - If you close FFS now, the script will delete the modified config-file again and is done.