Relative Content

Tag Archive for bashshellcrongoogle-drive-apibackup

Bash Script to Delete Backup Files Older than 7 Days From a Google Drive Folder

I created an automatic backup of my files from database to google drive and I used cron job to schedule it to execute every day. Now I want to auto delete these files that are older than a week from the google drive directory. Deleting the files stored in my server directory is supposed to delete files older than a week too but the script I wrote deletes every file in the server directory. I used this script: