Please explain this command in detail.
I am using this command to find large files above 6 MB and split them into 5 MB chunks in the same folder. Then it removes the original files (larger than 6MB) in the same directory.
find . -size +6M -exec split -d -b 5M {\} {}-part \; | find . -size +6M -exec rm -rf {} \;
I have no idea about the purpose of the following portion of the command:
{\} {}
My aim is to develop a script for backing up Virtualmin domains to Amazon S3 buckets monthly.
Due to a 5 GB PUT limit on Amazon S3, I have to split the domain backups (tar.gz
) in sizes less than 5 GB.