Giter Club home page Giter Club logo

nextcloud-backup-restore's People

Contributors

bernieo avatar decatec avatar mahmoudakl avatar mmartinortiz avatar pcanterino avatar timkrief avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nextcloud-backup-restore's Issues

Question: Adjust keep maxNrOfBackups logic to keep of the last x days and then one per month

Hi,

is there a possibility to adjust the logic for keeping old backups?

TODO: The maximum number of backups to keep (when set to 0, all backups are kept)
maxNrOfBackups=0

My requirements:

  • I like to create daily backup files
  • I like to keep all backup files of the last 7 days
  • outside the 7 days I like to keep one file per month for the last xx month

-> as a result I would have the backups of the current week and then one per month for e.g. one year.

Any idea?

Thanks a lot.
Chingato

Wrong variable declaration in restore script

Hello,

first at all thank you for your scripts.

I found a little false variable declaration in your restore script (NextcloudRestore.sh)+

In line 18 the variable is called "backupMainDir":
backupMainDir="/mnt/Share/NextcloudBackups/"

But in line 20 "mainBackupdir":
currentRestoreDir="${mainBackupdir}/${restore}"

So you have to change line 18:
mainBackupdir="/mnt/Share/NextcloudBackups/"

So thats the working restore script:
NextcloudRestore.txt

kind regards

Nextcloud ends up in installation mode after running the script

Hey there,

for some reason my Nextcloud ends up with a config with only a 'instanceid' => 'theinstanceid', left in it after the backup process.

Any idea why this happens?

System:
PHP 7.1.11
Apache
Latest Nextcloud 13.0.1

So looks like if it fails because no space left this happens :/

`Backup Nextcloud database...
mysqldump: Error: 'Disk full (/tmp/#sql_a3a_2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")' when trying to dump tablespaces
mysqldump: Couldn't execute 'show fields from `oc_accounts`': Disk full (/tmp/#sql_a3a_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") (1021)
Done

Starting web server...
Starting apache2 (via systemctl): apache2.service.
Done

Switching off maintenance mode...
Nextcloud is not installed - only a limited number of commands are available

                                                                  
  [Symfony\Component\Console\Exception\CommandNotFoundException]  
  Command "maintenance:mode" is not defined.                      
  Did you mean this?                                              
      maintenance:install              `

Is there any way to get it to stop the script instead of activate the install mode on errors? :)

Greetings,
Chris

| instead of & in NextcloudRestore

tl;dr: in line 73 replace | with &

The number of parameters will always be not equal to one OR not equal to two. What you want is to check if the number is NOT (equal to one OR equal to two), so if you dissolve this bracket you get (NOT equal to one) AND (NOT equal to two).

no issue, just thank you

I would like to thank you in this way only for the exact instructions on your homepage and for the scripts.
This makes it easier for me to manage my 3 Cloud instances immensely

best regards, Terrar

tipo on line 20

NextcloudRestore.sh

currentRestoreDir="${mainBackupdir}/${restore}"
correct: currentRestoreDir="${mainBackupDir}/${restore}"

Add an interrupt action

Hi.

Is it possible to add an interrupt action that will automatically go out of maintenance mode if a user hits Ctrl-C?

Thanks.

Cheers,
kekePower

Backup to FTP-Server

After using the backup i transfer it always to my FTP.
What do you think about implementing a feature to save the backups directly on an FTP-Server?
Is this possible to realize?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.