So I'm trying to back up my 250GB MyBook standard edition to my hacked 1TB MyBook World Edition and -v isnt giving enough info for my liking. My current command is: Code: cp -r -v Source Dest Is there anyway I can get a percentage bar and ETA like you get when you use a wget command? And I've also started the back up off so is there anyway I could resume it if it gets interrupted, or would I just have to do the whole thing again?
I think you are going to have to get a seperate program for the bar. I think if you could figure out how to RSYNC the drive and you main HDD you could just have rysnc run and it automatically keep everything up to date as long as it was connected. That would be just a simple bash script.
ok so the bar and the ETA i can live with out but I dont really want to keep them connected all the time I just want some kind of auto sync to happen between the folders that checks for changes and just grabs the new stuff from one and puts it on the other. And I dont think RSYNC isnt the programme to do it.
Well... that is EXACTLY what rsync is for... Synchronise directories (across different systems if needed) while using the minimum on required bandwith...
ok, will deffiantely give RSYNC a go, does it matter that they;re connected via USB rather then over a network? EDIT: Answered my own question here, from the rather complicated manual I've found it looks like local to local copies are easy(ish). I think I want to be running it in -u (update) mode so that it doesn't copy any of the files its already done, and also doesnt overwrite newer work. How ever I have no idea what -av or -avc mode are. But currently I think the command I need is: Code: rsync -u -progress Src/path/ Dest/dir What I think this does it update all the files in Dest/dir with the files in Src/path without creating a path directory at Dest/dir, and at the same time gives me a pretty to watch in putty. So now I'm gonna run it and hope for the best. And sorry to C-sniper he was correct just trying to read new linux mans when under the weather isnt the best idea.
Yea, I now have rsync happily running away, however the hamster brain in the MBWE means that transfers over USB are running at 1.6MB/s so its going to take a while. So a few more questions: 1) Will closing my putty window, ie turning of the PC i'm typing this to you kill the transfer? 2) Will running rsync is daemon mode fix this if no putty mean no transfer? Finally I am truly grateful for all the help from the linux gurus here and I promise not to bother you again with my linux woes for another 3 months.
I use a robocopy script (built into vista, you'll need to google it otherwise) to do some adhoc backup tasks. Either run them manually, schedule them up or wire them into an autoexec.bat file to start then on USB insert. Something like: robocopy "c:\source" "z:\backups\source" /mir Will copy the contents of the source folder onto a Z drive, the /mir switch engages mirror mode and ensure that old files on the target drive are deleted if they no longer exist on the source. Robocopy will also work between servers on UNC shares, EG: robcopy "c:\source" "//backupserver/backupshare/source" /mir
I have two phrases that sum up my experience with rsync which are: "F*&%$!!!" and "Oopsies!" "F*&%$!!!" because closing putty stops the transfer and -u doesn't update the files properly so thats one problem. "Oopsies!" because I typed something wrong and instead of dumping all my Films in the Film folder rsync decided to do something weird and put them all in the next folder up and now I have lots of files I cant delete via the shared folder in vista. I think the being unable to delete via gui over the network has something to do with the -arx modifier (right linux phrase?) I had to use as the share to windows is classed as a user and its not the right user to delete or modify the files. So now I have 40Gb wasted space on the MBWE until i figure out how to delete the files via GUI or spend some time with the CLI, and yes I know I could use a script to find the latest folders and delete them but with my luck I'd end up wiping the entire video section and I've never written a script before so I'll take the long slow reliable method any day. I can use "Oopsies!" again as whilst the rsync copied lots of film folders they were all empty inside, but I think using -r will fix that. And Jenny that solution sounds like I'd have to have the controlling computer on for the whole transfer which is something I'd like to avoid as its a lot more power hungry then the MBWE and external HDD combo. To sum up for those skim reading: Will running rsync as a daemon on the MBWE enable me to leave the transfer running with out having to leave a putty conected the whole time? Other then using ls and rm -r is there a fool proof way to remove the files copied over in error? Or is there a way i can alter all the permission so i can delete the files via the windows GUI? Using will -r fix my empty folder problem, wont it?
Look into 'screen' it will solve your closing putty problem... for the files, use the "--delete" option of rsync.
I'm gonna assume you mean this: http://www.gnu.org/software/screen/ and it sounds perfect, especially with the detach thing. Will continue to read it in the morning but right now my bed is calling a staring at black on white HTMLs and white on black CLIs doesn't fill me with the greatest enthusiasm right now. And for the deleting files problem I reckon I'm just gonna fudge it with chmod and give all files 777 so I can manipulate them using a GUI network share on vista. I know I should get more comfortable with CLI but tbh it still scares me. And the new software of screen and rysnc aren't helping to settle the nerves. EDIT: ok so I lied and I'm kinda like a dog with a bone and stayed up an extra half hour to have a play with the new progammes. I love you glider and that screen programme is a life saver. It took me a while to figure out what "C-a d" meant as key binding, apparently its "Ctrl a d" at the same time. And the chmod fudge worked, but now all my file appear hidden to windows so I may need to rest the permissions when I'm finished.