RichMiller
New Member
Hello,
As context, about a year ago I (along with 70% of the population) decided to move my work computer back home, in the shed more specifically. For security reasons i've decided to keep all the HDDs and the NAS drive back indoors, connected via a decent CAT6 ethernet cable I ran to the shed. (sorry, I add more fluff than a bad D&D DM)
Also as context, I am really quite ignorant when it comes to Linux - I am trying where I can to understand, I have come on quite far in my journey but i'm still incredibly uneducated. I'm proud to say that the following issues i did have running for a few months, however it's kind of come to a grinding halt.
I have a couple of scripts I run from crontab at 1am and 3am, they're both rsync scripts.
One script backs up a folder from a USB drive (A) to the backup drive (B) and looks like this;
#!/bin/bash
sudo rsync -arvh --progress "/mnt/sdc1/RESOURCE LIBRARY/" "/mnt/sde1/RESOURCE LIBRARY"
The second script backs up a folder from the NAS drive (N) to the backup drive (B)
#!/bin/bash
sudo rsync -arvh --progress "/mnt/Jupiter/Caravan/001 Caravan Projects/" "/mnt/sde1/PROJECTS_300"
The first script still runs well, with no issues.
The second NAS backup script however, gives me the following error, which I have emailed to me via the MAILTO in crontab.
"rsync: change_dir "/mnt/Jupiter/Caravan/001 Caravan Projects" failed: Permission denied (13)"
I am (now this is where you are no doubt going to do some head slapping/shaking) sure this is because i've sodded around too much with chowning/chmodding different folders, so much so I just can't work out who owns what now. And i'm assuming the issue is to do with folder ownerships, at least i'm hoping.
Is there a way to .. safely reset ownerships over everything? Or at least check who owns that /mnt/Jupiter .. folder?
This is such an irritating problem to help with, it's the equivalent of someone bringing a home-made Frankensteined junk car into a mechanics and asking for a once-over .. However, i'm kind of at a loss. I just keep running into that 'permission denied 13' issue, and google serves up other peoples problems that I can't quite figure out myself to tell if they're at all relatable.
You guys have helped me out in the past, and I really appreciated your help then, I will once again!
Cheers,
Rich
As context, about a year ago I (along with 70% of the population) decided to move my work computer back home, in the shed more specifically. For security reasons i've decided to keep all the HDDs and the NAS drive back indoors, connected via a decent CAT6 ethernet cable I ran to the shed. (sorry, I add more fluff than a bad D&D DM)
Also as context, I am really quite ignorant when it comes to Linux - I am trying where I can to understand, I have come on quite far in my journey but i'm still incredibly uneducated. I'm proud to say that the following issues i did have running for a few months, however it's kind of come to a grinding halt.
I have a couple of scripts I run from crontab at 1am and 3am, they're both rsync scripts.
One script backs up a folder from a USB drive (A) to the backup drive (B) and looks like this;
#!/bin/bash
sudo rsync -arvh --progress "/mnt/sdc1/RESOURCE LIBRARY/" "/mnt/sde1/RESOURCE LIBRARY"
The second script backs up a folder from the NAS drive (N) to the backup drive (B)
#!/bin/bash
sudo rsync -arvh --progress "/mnt/Jupiter/Caravan/001 Caravan Projects/" "/mnt/sde1/PROJECTS_300"
The first script still runs well, with no issues.
The second NAS backup script however, gives me the following error, which I have emailed to me via the MAILTO in crontab.
"rsync: change_dir "/mnt/Jupiter/Caravan/001 Caravan Projects" failed: Permission denied (13)"
I am (now this is where you are no doubt going to do some head slapping/shaking) sure this is because i've sodded around too much with chowning/chmodding different folders, so much so I just can't work out who owns what now. And i'm assuming the issue is to do with folder ownerships, at least i'm hoping.
Is there a way to .. safely reset ownerships over everything? Or at least check who owns that /mnt/Jupiter .. folder?
This is such an irritating problem to help with, it's the equivalent of someone bringing a home-made Frankensteined junk car into a mechanics and asking for a once-over .. However, i'm kind of at a loss. I just keep running into that 'permission denied 13' issue, and google serves up other peoples problems that I can't quite figure out myself to tell if they're at all relatable.
You guys have helped me out in the past, and I really appreciated your help then, I will once again!
Cheers,
Rich