Technology news and Jobs
Seeking Nerdvana
The Road to Ubuntu - Backup Salvation
Seeking Nerdvana
The Road to Ubuntu - Backup Salvation | The Road to Ubuntu - Backup Salvation |
|
|
|
| Written by Adam Turner | |
| Monday, 05 November 2007 | |
|
Page 2 of 4 I kept trying to change the rights on particular folders, but I suspected the problem was with the way I was mounting the drive.On one reboot something went awry with gnome, it spurted out some kind of error. The Ubuntu appearance theme looked slightly different, but my network drive hanging problems were gone. Now that I had a suspect, I did a little digging and discovered if I disabled all the Nautilus file preview settings my problems went away. Even though they'd been set to "Local files only", I think they'd been treating the mounted network drive as a local drive and getting bogged down in trying to preview all those files. With my stability issues resolved, it was time to deal with those permissions. A friend of Con's suggested a fstab entry using cifs rather than samba. For some reason it didn't work, but he'd used some interesting permissions parameters that I took onboard. Here's the fstab entry that finally fixed things for me; //192.168.0.3/Public /windows/Public smbfs username=xxx,password=xxx,dir_mode=0777,file_mode=0777 0 0
The key here seems to be "dir_mode=0777,file_mode=0777" - allowing me to read and write to any folder in the partition. I've used username and password, but I think guest would be fine as long as those permissions are correct. With my stability and permissions issues sorted, it was time to start experimenting again. Like I said, I kept things simple with cp. I'm only backing up a handful of text files, so I don't need incremental backups, but I do want timestamps and automatic deletion of old backups after a set time. I started with a script that looked something like;
# Source on mounted NTFS data partition
Note that "${sou}" is in quotes in the last line, to cope with the fact there's spaces in the path to my source folder. This was a good starting point but, with a little more research, I managed to make it more useful. CONTINUED |
| < Prev | Next > |
|---|




Subscribe to iTWire's daily e-newsletter now and get a FREE 12 month license to project management software valued at $99 USD. 





