{"id":15136269,"url":"https://github.com/thedepart3d/nextcloud-backup-script","last_synced_at":"2025-07-27T00:34:37.604Z","repository":{"id":217515473,"uuid":"743981898","full_name":"theDepart3d/nextcloud-backup-script","owner":"theDepart3d","description":"Simple Way to create backups for Nextcloud. Ability to backup both the nextcloud directory and database automatically using cronjob. Tired of manually creating backups. This is a simple answer, the script can be runned manually or automatically.","archived":false,"fork":false,"pushed_at":"2024-01-19T17:13:45.000Z","size":39,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T18:05:28.729Z","etag":null,"topics":["nextcloud","nextcloud-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theDepart3d.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,"roadmap":null,"authors":null}},"created_at":"2024-01-16T11:52:05.000Z","updated_at":"2024-04-12T21:37:58.000Z","dependencies_parsed_at":"2024-01-19T18:50:34.466Z","dependency_job_id":null,"html_url":"https://github.com/theDepart3d/nextcloud-backup-script","commit_stats":null,"previous_names":["thedepart3d/nextcloud-backup-script"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theDepart3d%2Fnextcloud-backup-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theDepart3d%2Fnextcloud-backup-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theDepart3d%2Fnextcloud-backup-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theDepart3d%2Fnextcloud-backup-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theDepart3d","download_url":"https://codeload.github.com/theDepart3d/nextcloud-backup-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237821508,"owners_count":19371774,"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","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":["nextcloud","nextcloud-server"],"created_at":"2024-09-26T06:20:18.923Z","updated_at":"2025-02-08T14:31:01.924Z","avatar_url":"https://github.com/theDepart3d.png","language":"Shell","readme":"\n# Nextcloud Backup Script\nSimple Way to create backups for Nextcloud. Ability to backup both the nextcloud directory and database automatically using cronjob.\nTired of manually creating backups. This is a simple answer, the script can be runned manually or automatically.\n\nBackups are all stored by day and time, incase multiple backups are created in a day.\n- ~/nextcloud_backups/YYYY-M-D/HTM\n- ~/nextcloud_backups/2024-01-01/12T47\n\n## Requirements\nAll requirements will be installed automatically if not found\n- PV\n- mysqldump\n- rsync\n- zip\n- OS: Ubuntu/Debian\n\n## Installation\n\nFirst you will need root access to the server. EUID 0 (/root/)\nClone the script into your /root/ directory (~/ == /root/)\n\n```bash\n  git clone https://github.com/theDepart3d/nextcloud-backup-script.git\n  cd nextcloud-backup-script\n  chmod +x backup-nextcloud.sh\n```\n\n## Manual USAGE\n\n```bash\n# to run the script manually all you need to do is.\n./backup-nextcloud.sh\n# or \nbash backup-nextcloud.sh\n```\n\n## Automation USAGE\n\n```bash\n# ./backup-nextcloud.sh \u003cNC_DIR\u003e \u003cBACKUP_DIR_LOCATION\u003e\n# Example USAGE for nextcloud install location /var/www/html\n# backup dir will be stored in /root/ to avoid unwanted access\n./backup-nextcloud.sh /var/www/html /root/nextcloud_backups\n```\n\nThe above will automate the html directory zip as well as the database backup.\n\n## Crontab USAGE\nBellow cronjob will backup the directory as well as the database every 7 days\n```bash\n* * 7 * * cd ~/nextcloud-backup-script \u0026\u0026 /bin/bash backup-nextcloud.sh /var/www/html /root/nextcloud_backups \u003e /dev/null 2\u003e\u00261\n```\n## LICENSE\n[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://opensource.org/licenses/) \n\n![Build Passing](https://img.shields.io/badge/build-passing-brightgreen.svg)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedepart3d%2Fnextcloud-backup-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedepart3d%2Fnextcloud-backup-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedepart3d%2Fnextcloud-backup-script/lists"}