Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- old_date=$(date -d "5 days ago" "+%Y-%m-%d")
- old_file="backup-$old_date*"
- lftp -u $USER,$PASS $HOST << EOF
- set ssl:verify-certificate no
- glob -a mrm -rf $old_file
- bye
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement