Skip to content

node.js tool which creates zip-file backups of Emory CS course homework-submission directory. developed for a professor wanted me to automate backing up student homework submissions

cornu-ammonis/database-zipbackup-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

database-zipbackup-tool

General Usage

start with

node main.js $hoursDelay $hoursInterval

where {hoursDelay} is the number of hours to wait before attempting to generate backups. After that hoursDelay and the initial backup generation, the tool will wait for {hoursInterval} hours before attempting to generate backups again. If hourshoursDelay is undefined or 0, the first backup will happen after 10 seconds. If hoursIntervalHours is undefined, default is 24 hours between backups.

I used this setup because the server to which i deployed this app was set to a different time zone than mine. Setting the backup time relative to current time meant i didnt need to worry about converting times.

Docker Usage

You must mount the directories containing backups at /app/backups and the directory where zips should output at /app/zips

About

node.js tool which creates zip-file backups of Emory CS course homework-submission directory. developed for a professor wanted me to automate backing up student homework submissions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published