Skip to content

Instantly share code, notes, and snippets.

@wa1kb0y
wa1kb0y / dropbox_cleanup.sh
Created September 5, 2021 20:38
Deleting files older from Dropbox than date with using ./dropbox_uploader.sh
#!/bin/bash
#
# Deleting files from dropbox with names like YYYY-MM-DD_blabla
#
if [ "$*" == "" ]; then
echo "No arguments provided. Example usage: ./dropbox_cleanup.sh mydir '2 months' --dry-run"
exit 1
fi