I'm having trouble with getting my data from my shared hosting. I've approximately 20 GB folder that contains about 40.000 images. I tried archive that folder by splitting archive files:
tar -cvpj 'home/public_html/images/'/ | split -d -b 100m - images.tar.bz2.
It is working fine but the problem is the process takes too long and I guess my hosting provider is killing the process in the middle of archiving process.
So I couldn't use archived files because when I try to extract it is giving corrupt message, when I run again this command it tries archive again all files and overwriting the previously archived files.
And now I decided to archive it by their date for example every archive contains only the files which are uploaded in one month. Unfortunately, I've tried couple of commands but I could not find a way.
I found the question: How do you only tar files in a directory based on a specific file name? but I need with specific date range.
How can I archive/compress and filter files by their date pattern? Or are there any other ways to get my files from there I tried using cPanel but it skipped that folder.