This tutorial demonstrates how to use Google Apps Script to:
-
Create copies of the Google Sheet in the desired destination folder automatically at set intervals.
-
Append the time stamp with each backup file's name.
-
Adjust time trigger for backing up every day/hour/minute.
Very usefull for me. Thanks @estebanthi !
Edit:
Just a mistake:
destination.removeFile(fileToDelete);
should be:
folder.removeFile(fileToDelete);
And may be could you clearFolder after each copy and avoid to retrieve destination folder: