The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Backup userspice files & table - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29)
+--- Thread: Backup userspice files & table (/showthread.php?tid=622)

Pages: 1 2 3 4 5


Backup userspice files & table - firestorm - 07-03-2017

awesome, thanks for inclusion into core, realy busy at the moment, daughter just had major op so will be offline for a number of days but will look at the backup all, maybe try prepending a . to the backup folder name but if im correct that would hide the file from view on a mac not sure about other systems, got a few ideas on this i'll look at soon as i can, im working on restore feature too which will be extremely experimental


Backup userspice files & table - Brandin - 07-04-2017

Looking forward to playing with this and incorporating it into my Cron System!


Backup userspice files & table - Brandin - 07-04-2017

Thoughts on what might be causing this error? Obviously the file name is too long - but why???

Warning: copy(): File name is longer than the maximum allowed path length on this platform (4096): /home/aircentralized/public_html/mydash/backups/backup_everything_2017-07-04T17-25-47/files//backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/backup_everything_2017-07-04T17-25-47/files/backups/b in /home/aircentralized/public_html/mydash/users/helpers/backup_util.php on line 67

The backup still succeeds and is complete...


Backup userspice files & table - firestorm - 07-04-2017

hmm is it localhost or remote server ? what platform is it on?


Backup userspice files & table - Brandin - 07-04-2017

Remote, cPanel, latest version.


Backup userspice files & table - Brandin - 07-04-2017

It looks like it is backuping up the backup folder into the backup folder and just keeps going and going and going and going and doesn't stop.........any way to exclude the backup folder from the list of folders? I am using 'backup/' as the directory. Or is this the ongoing issue Mudmin had posted about? No issues when I use anything but the Database & ALL files.


Backup userspice files & table - mudmin - 07-04-2017

That's the ongoing issue. It actually does finish, but on my 1gigabyte DMS project, it can take half an hour or so. Then I just have to open the zip and delete the backup folder and everything is good. The fix is going to be to exclude that, but it is building the array a little differently than I expected and I didn't get a chance to figure out how to stop it.


Backup userspice files & table - Brandin - 07-04-2017

Where exactly does it pull all the directories? If I could figure that out I can work on seeing if I can figure out how to exclude it...

Thanks!


Backup userspice files & table - mudmin - 07-04-2017

It's getting those directories from the top of the admin_backup.php file you can see where it's doing /users and /usersc and where the everything option adds /

The problem is that when it adds the array it must be doing it in memory or somewhere else, because everything I've done to exclude folders and files that begin with backup only result in the db being backed up and nothing else. The backup program itself is in the helpers folder. Feel free to take a crack at it. I ran out of time.

I'd also like to make a feature to just select folders, because, for instance, my DMS app has all the code stored in a private repository, so I really only need the receipts people upload to it and the db. There's really no reason to backup userspice itself. I already have that.



Backup userspice files & table - firestorm - 07-04-2017

this is why left out backup all origionaly, maybe instead of back up all we could produce a checkbox list files/directories at root and just select what to backup