d="$(date +"%Y-%m-%d")" dir="Onedrive Archive" cd '/volume1/Backup' mkdir "$dir"/"$d" cp -r Onedrive/* "$dir"/"$d" find "$dir" -type d -mtime +10 -exec rm -rf {} +
Last updated 10 months ago