{"id":23119506,"url":"https://github.com/gorkemguray/backup-script","last_synced_at":"2025-08-28T05:14:40.043Z","repository":{"id":191050727,"uuid":"124856195","full_name":"GorkemGuray/backup-script","owner":"GorkemGuray","description":"This script is used to automatically upload your site files and database from your VPS to Google Drive.","archived":false,"fork":false,"pushed_at":"2022-02-03T20:23:34.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-02T10:03:59.483Z","etag":null,"topics":["backup","backup-script","database-backup-application","server","server-backup","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GorkemGuray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-12T08:20:46.000Z","updated_at":"2022-02-03T20:23:37.000Z","dependencies_parsed_at":"2023-08-27T21:36:21.439Z","dependency_job_id":"f33e0c8f-22bf-4db9-b9fd-18ad1fc36240","html_url":"https://github.com/GorkemGuray/backup-script","commit_stats":null,"previous_names":["gorkemguray/backup-script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GorkemGuray/backup-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GorkemGuray%2Fbackup-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GorkemGuray%2Fbackup-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GorkemGuray%2Fbackup-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GorkemGuray%2Fbackup-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GorkemGuray","download_url":"https://codeload.github.com/GorkemGuray/backup-script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GorkemGuray%2Fbackup-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272444172,"owners_count":24936085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","backup-script","database-backup-application","server","server-backup","shell-script"],"created_at":"2024-12-17T05:36:34.235Z","updated_at":"2025-08-28T05:14:40.025Z","avatar_url":"https://github.com/GorkemGuray.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backup-script\n**DESCRIPTION**\n\n - This script is pretty simple. But it is ideal for periodic backing up your small-scale sites.\n - This script needs to be installed gdrive in order to work. Detailed information can be found at https://github.com/prasmussen/gdrive\n - This script can be used to upload your site files and database you have hosted on the VPS to Google Drive.\n -   This script does not keep your backups on your server. Also, your Google Drive account may only have 1 backup.\n - You can run this script manually or automatically using cron.\n - If you use Cron, you can decide when backups will be taken.  Just remember that your Google Drive account has 1 backup.\n\n\n\n----------\n\n\n**USAGE**\n\n - First edit the \"CHANGE BY YOURSELF\" section according to your own information.\n - Upload the script to your server.\n - Do not forget to make the script executable. `chmod a+x backup.sh`\n - Add a cron job if you want to make a periodic backup.\n - A sample cron job (for backing up on Monday at 1:00 am UTC) :\n\t - Open the crontab editor with the  `crontab -e`  command.\n    - Add the bottom line: `\\* 1 * * 6 /backup.sh \u003e/dev/null 2\u003e\u00261`\n - If tar, mysqldump, zip and gdrive commands are in different locations, please update `export PATH` line.\n   \n\n\n----------\n\n\n**Explanation of Variables**\n\n    \n\n 1. `NAME` : A prefix for site backup files.\n 2. `FROM_BACKUP_DIR` : The path to the root directory of the site files you want to back up (i.e public_html). *DO NOT USE THE \"/\" AT THE END OF LINE.*\n 3. `TO_BACKUP_DIR` : The location where the compressed site files will be stored on the server. *DO NOT USE THE \"/\" AT THE END OF LINE.*\n 4. `GOOGLE_DRIVE_DIR` : Your Google Drive folder ID. This folder must be empty when uploading first.\n 5. `DBUSER` : MySQL database username.\n 6. `DBPASS` : MySQL database password.\n 7. `DBNAME` : MySQL database name.\n \n\n*The command is simple but the description is complicated* :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorkemguray%2Fbackup-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgorkemguray%2Fbackup-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorkemguray%2Fbackup-script/lists"}