toasti Posted March 16, 2021 Share Posted March 16, 2021 Wow, many thanks for the complete solution! I set it up but I am not sure if that really works on my server, because tcpdump is not recognized as command. I presume I have to install this first, right? Quote Link to comment
mgutt Posted March 16, 2021 Author Share Posted March 16, 2021 31 minutes ago, toasti said: I presume I have to install this first, right? Yes sorry. Nerd Pack is what you need Quote Link to comment
toasti Posted March 16, 2021 Share Posted March 16, 2021 Awesome! Works like a charm! I will setup another one with another port for my wife's desktop and we are done  Many thanks! 😄 Quote Link to comment
toasti Posted March 16, 2021 Share Posted March 16, 2021 Another question... how did you solve it that your Backup user can access your Windows profile and things like desktop, documents, etc? Did you add the user to the admin group? Add NTFS read permissions for the profile folder? All not ideal... Quote Link to comment
mgutt Posted March 17, 2021 Author Share Posted March 17, 2021 Add a new local user through the settings with a strong password and name it "backup". After that right mouse click on "documents" > share with... Select the new user from the drop-down. It should be "read only". Repeat this step for all dirs you want to share. Do not share the root username dir. It contains the hidden "appdata" dir and a massive amount of other files which aren't needed. Â After that you can mount this "smb server" through the Unassigend Disks Plugin. Quote Link to comment
toasti Posted March 17, 2021 Share Posted March 17, 2021 (edited) That is clear  I did the same, but the problem is that other users have no NTFS permissions for your profile folder. I always use advanced sharing, maybe the easier sharing option also sets NTFS permissions. Not sure. Never used it the last years.  EDIT: Yes, tested it: NTFS permissions are automatically set with the easier sharing option. I will create a group, add the Unraid-Backup-User to the group and give the permissions to the group. Then I am flexible if I want to change anything for the user accounts... It's always best practice to use groups.  By the way, I created a share for the complete C$ because I want also to backup other folders in my profile, also some program folders in AppData etc. In the script I just added the path behind and all is fine... Edited March 17, 2021 by toasti Quote Link to comment
mgutt Posted March 17, 2021 Author Share Posted March 17, 2021 18 minutes ago, toasti said: By the way, I created a share for the complete C$ because I want also to backup other folders in my profile, also some program folders in AppData etc. In the script I just added the path behind and all is fine... Ok, but it takes much more time and the logs will contain several permission errors because of hidden redirects. But you will find them in the backup log Quote Link to comment
toasti Posted March 17, 2021 Share Posted March 17, 2021 (edited) No problem, I will check this as soon as I did add the first backups within AppData. Â How this works now is really brilliant. Â I just thinking about how to do a second copy which I save in the office and refresh every week with a new backup. Probably the easiest one is to create 2 more scripts that will copy the data to the second and third external drive. Same config, just another target path and manually started. Â Â Edited March 17, 2021 by toasti Quote Link to comment
toasti Posted March 18, 2021 Share Posted March 18, 2021 (edited) Any idea how to send the external backup hard disk to stand by when no backup is running? Edited March 18, 2021 by toasti Quote Link to comment
mgutt Posted March 18, 2021 Author Share Posted March 18, 2021 The UD Plugin should spindown the disk I think. Please ask in the support thread of UD. Quote Link to comment
CS01-HS Posted March 18, 2021 Share Posted March 18, 2021 Actually the latest versions of UD relinquished spin control to unRAID so disks in UD spindown according to the default unRAID spindown timer.  Maybe you just have to wait longer or maybe you're encountering the same problem I did - where the USB drive returns an error when spindown's called so even though it's spun down unRAID thinks it's active.  I have a fix but I'm not confident enough in it to really recommend it:   Quote Link to comment
mgutt Posted March 22, 2021 Author Share Posted March 22, 2021 I found a bug. My PC is mounted through SMB. The backup runs every 5 hours. Now I found out that my sleeping PC returned a succesful backup, although rsync copied only the root dir of the SMB mount and returned no other errors: Â Create backup of /mnt/remotes/DESKTOP-I0HHMD9_Users Backup path has been set to /mnt/user/Backup/marc/remotes/DESKTOP-I0HHMD9_Users Create incremental backup 20210321_000001 by using last backup 20210320_200001 sending incremental file list DESKTOP-I0HHMD9_Users/ Number of files: 1 (dir: 1) Number of created files: 0 Number of deleted files: 0 Number of regular files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 0 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 75 Total bytes received: 27 sent 75 bytes received 27 bytes 204.00 bytes/sec total size is 0 speedup is 0.00 Â Â The backup dir is empty: Â The last backup exists: Â This bug is not dangerous, because after powering on my PC, the new backup is created as usual: Â But its not incremental anymore as it was compared with the last empty backup. Â I don't know why the SMB mount returns an empty result. Shouldn't it return "host is offline"?! I need to check that further while my PC is sleeping. Â Maybe its the best to mark backups as failed if they contain only one empty dir. Â Â Quote Link to comment
toasti Posted March 24, 2021 Share Posted March 24, 2021 Just to be sure, I need a BTRFS formatted external hard disk that it works correctly (hard links, inodes, etc) - right? Yesterday I had the idea to map my external disk (connected to my W10 machine, NTFS formatted and Bitlocker encrypted) to Unraid and use your script to make a backup copy which I want to store in my office. Quote Link to comment
hf00 Posted March 24, 2021 Share Posted March 24, 2021 On 1/3/2021 at 2:40 AM, mgutt said: Ah ok. You passed multiple source paths and by that it uses one log for all source paths. This bug will be solved in the next version. I already fixed it, but I'm still testing the next release Hello, Â I use today the script in v0.6 and i still have the problem with the log files when using multiple source paths : Same result as in v0.3: - the first log file is full with the logs of all source path backups - only the last log file is OK with only the log of the last source path backup. Â Fred. Quote Link to comment
mgutt Posted March 24, 2021 Author Share Posted March 24, 2021 1 hour ago, hf00 said: i still have the problem with the log files when using multiple source paths : Yes, this bug is still present. I tried to find out how to stop forwarding the script output to a file, but wasn't successful. I think I will try to forward the output to an own function. Maybe I can replace only the filename so "exec" isn't called multiple times. Quote Link to comment
bclinton Posted April 7, 2021 Share Posted April 7, 2021 Hi all.....I have noticed that I am unable to unmount the USB disk even after the backup script finishes. I run it in background mode and it apparently affects the unmounting of the drive. I click unmount on the UD entry and it pauses a split second and stays mounted. Looking at the drive settings below it shows the backup script. Is there a command I can run to stop the script manually? Â Â Quote Link to comment
d0ngt Posted May 2, 2021 Share Posted May 2, 2021 Hi, i tried the script an it works wonderful. One thing i would like to see added, is the possibility to exclude Folders. For example ".Recycle.Bin". Or other specified folders like home videos in user shares. Quote Link to comment
Dtrain Posted May 8, 2021 Share Posted May 8, 2021 (edited) On 3/22/2021 at 11:19 AM, mgutt said: I found a bug. My PC is mounted through SMB. The backup runs every 5 hours. Now I found out that my sleeping PC returned a succesful backup, although rsync copied only the root dir of the SMB mount and returned no other errors:  Create backup of /mnt/remotes/DESKTOP-I0HHMD9_Users Backup path has been set to /mnt/user/Backup/marc/remotes/DESKTOP-I0HHMD9_Users Create incremental backup 20210321_000001 by using last backup 20210320_200001 sending incremental file list DESKTOP-I0HHMD9_Users/ Number of files: 1 (dir: 1) Number of created files: 0 Number of deleted files: 0 Number of regular files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 0 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 75 Total bytes received: 27 sent 75 bytes received 27 bytes 204.00 bytes/sec total size is 0 speedup is 0.00     where to get that summary ? I doubt the backup went through ... on a very large Folder ( ~ 22TB) The log what i got looks like this  reate backup of /mnt/remotes/192.168.1.3_Pics Backup path has been set to /mnt/HDD/Pics/remotes/192.168.1.3_Pics Create full backup 20210508_062306 sending incremental file list 192.168.1.3_Pics/ 192.168.1.3_Pics/Treesize.xml 192.168.1.3_Pics/Untitled.dfd 192.168.1.3_Pics/duplicates.xml 192.168.1.3_Pics/-- new entries !/ 192.168.1.3_Pics/-- new entries !/2021-07.05 001.jpg 192.168.1.3_Pics/-- new entries !/2021-07.05 002.jpg .... ~ roughly 1TB copied over then suddenly stopped script stopped somewhere without error entry ? ** Update script makes Browser Tab Crash after thats script is closed ... where to dig out the error ?       Edited May 8, 2021 by Dtrain Quote Link to comment
mgutt Posted May 8, 2021 Author Share Posted May 8, 2021 58 minutes ago, Dtrain said: Update script makes Browser Tab Crash after thats script is closed ... where to dig out the error ? Â Do not execute the script through the browser. Only in the background oder through Cron. The user scripts plugin is not memory friendly enough to display a huge amount of logs in the popup. Quote Link to comment
DivideBy0 Posted May 15, 2021 Share Posted May 15, 2021 Nice work.  Can we make this script get a file or folder from a unix like system that allows ssh / scp / sftp?  I need to make back-ups of some remote linux machines directories Quote Link to comment
mgutt Posted May 15, 2021 Author Share Posted May 15, 2021 7 hours ago, johnwhicker said: allows ssh / scp / sftp? I'm working on that. Please do not modify my script. Someone tried that and because of the last cleanup through "rm -r" all his data gone lost. I want to change everything to rsync. After that SSH / rsync daemon will work, too. Quote Link to comment
DivideBy0 Posted May 15, 2021 Share Posted May 15, 2021 5 hours ago, mgutt said: I'm working on that. Please do not modify my script. Someone tried that and because of the last cleanup through "rm -r" all his data gone lost. I want to change everything to rsync. After that SSH / rsync daemon will work, too. Thanks much Sir Quote Link to comment
schoppehermann Posted May 19, 2021 Share Posted May 19, 2021 (edited) On 5/15/2021 at 10:13 AM, mgutt said: I'm working on that. Please do not modify my script. Someone tried that and because of the last cleanup through "rm -r" all his data gone lost. I want to change everything to rsync. After that SSH / rsync daemon will work, too.  Do you mean, you want to change everything to rclone? Is it possible to make Backups encrypted to my Cloud Storage?   Thank you very much for your great Work!!! Edited May 19, 2021 by schoppehermann Quote Link to comment
mgutt Posted May 19, 2021 Author Share Posted May 19, 2021 2 hours ago, schoppehermann said: Do you mean, you want to change everything to rclone? Rclone? I wrote rsync  2 hours ago, schoppehermann said: Is it possible to make Backups encrypted to my Cloud Storage? Not a the moment. Quote Link to comment
sonic6 Posted May 25, 2021 Share Posted May 25, 2021 Short question. What happens, if there is not enough free space on the destination? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.