| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9
Comments:
<0> for multiple rotating backups <0> but for now can't even get a simple rsync command to have the results I expect <1> so write a shell script, perl script, python, ect that will run them <0> I'm intending to re-use a script I found, that i like <0> but it won't help me much if I can't get the basic command to work. <1> okay, what problem you having with rsync and how are you innitiating it? <0> rsync -avz -e ssh root@localhost:/var/www/ /var/www/ <1> okay thats not a good way to do it imo <0> i'd expect that to mirror /var/www/ from the first machine to /var/www/ on the backup machine <1> and why are you invoking ssh when its a localhost copy <1> well first machine and second machine are the same thing in that example <0> ok i'll try using local ip addresses then <2> Did I mention I hate slackware? <0> rsync -avz -e ssh root@192.168.0.5:/var/www/ /var/www/ <0> how do I specify that the second machine is 192.168.0.6 ? <1> well if nothing is specified it is the local machine
<1> so that rsync would call 192.168.0.5 and pull /var/www/ and put that in local machine /var/www/ <1> if your going to automate the machine and its a lan i recommend a simple rsync configuration on the from box that will allow you to use rsync without piping thru ssh <0> ssh is not necessary in the context of my lan ? <1> why would it be? <1> are you backing up sensitive data? is one of your local machines compromised and sniffing your network to capture said sensitive data and transmit it to someone else? <0> don't know exactly, just felt that accessing a box using ssh was a best practice <0> but now that you mention it, you're obviously right <1> it is if your using a username and p***word <1> but if you setup rsync you dont need a username or p***word <1> it will allow access to specified ips to use rsync to copy data (or write it depending on the configuration) <0> ok <1> to automate ssh you would have to use null phrase ssh keys which is bad <0> there's just another problem i've been running into i'd like to solve first <0> I just tried to run : <1> i would rate null phrase ssh keys a higher risk than plain ssh :) <1> err than plain rsync on a lan <0> rsync -avz /var/www/ root@192.168.0.6:/var/www/ <0> and i get my main problem with rysnc <1> okay that would copy local machine to the 192.168.0.6 <0> tons of "read-only file" system erros <0> errors <0> yes, <0> the main machine, yoruban, should be making backups to the backup machine, legba <1> oh thats bad <0> yoruban is .0.5 <1> and its not ssh or rsync issue <0> legba is .0.6 <0> well I was reading that when you run rysnc daemonized <0> then you have to have read-only=no in your rsyncd.conf <1> see read only means the destination is mounted read only (easy to fix) or it has locked files on it which could imply a root kit <1> yes if your going to write to it <1> my recommendation is pull the data using the backup machine <1> and do not allow writes to the active machine <1> then if you need to do a restore you can use rsync -e ssh in a session to restore the data <0> ok, so I'll try the same test from legba <1> oh oh the format of your rsync -avz is wrong, you dont use root@192.168.0.6 thats an ssh pipe deal <0> oh <0> what should I be using then ? <1> you would rsync -avz /var/www/ rsync://192.168.0.6/<rsync title>/var/www/ <1> and the rsync config would have to be set for write permissions <0> but would this be for running rsync one-time, or daemonized <0> ? <1> personally i restore using rsync -e ssh and do backups with rsync -aq --delete rsync://system/<rsync title>/path/to/files <1> the one using rsync:// is for talking to a daemonized system <0> well in what I was reading I couldn't really tell if I needed to set it up daemonized <0> what do you think ? <3> Here's 30 cents. Go ask someone who cares. <1> what i do is setup each server i'm backup up with rsync daemon <1> and i pull the data using a script on my backup server to my terabyte drive <1> then on the rare occasion that i have to restore something i log into the backup server and use rsync -e ssh to restore the data <1> my backup server remains isolated from the world this way as nothing can push data to it and I can only ssh into it from specified ips <1> my backup server is designed to drop all incoming packets it doesn't initiate except ssh on 2 ips <1> everything else on ssh is ignored <1> i believe in protecting my data :) <0> so if i understand correctly you can't ssh to your backup server from the wan <0> ? <1> right <1> only 2 ips on the net can ssh into the box <1> if i need to restore data i log into the backup server and push the data back to the servers <0> wait, how can you log into the backup server if you're not inside your lan ?| <1> i use iptables to block all access to ssh except 2 ips, since i work remotely one of the ips is my ip here
<1> the other ip is a rotating ip of one of the boxes in our network as a back way in should i be unable to access from here or need to access it from somewhere else <4> slm tunneling i gess <1> kinda <1> i can ssh in from here <1> at my house <1> or i can ssh in from the network box that has access to the server at this point in time, that rotates <0> i get it <0> sounds pretty good. <0> and secure <1> i have went to great lenghts to try and secure the network from any penetration cause i really hate script kiddies ... and i dont like to work hard <1> if a box gets compromised i have to take a break from gaming and fix it hehe, if they can't get in i can keep gaming <0> well that's a good incentive to have good security then, lol <0> what command do you think I should use to do my test rsync and try to solve those read-only errors ? <1> last compromise we had was probably better than 5 years ago on a 6.2 system which was on a migration path anyway <1> slm first off dont use rsync daemon to write to your server <1> setup rsync daemon only to read from your system <1> then use a script on your backup system to pull the data <0> i've understood I will run the command on the backup system <0> but i think i have to do some test commands <1> on the occasion that you have to restore dont use the daemon :) <0> because of all the errors I get each time I try to use rsync <1> show me the command your using that gives you errors <0> I should get rsync daemon running on my backup server then ? <1> no, you dont need it on your backup server <1> your pulling with command line <0> could you tell me what command I can run on the backup server to do a test, see if rsync can backup /var/www/ without errors ? <0> (i'd be happily surprised...) <5> whats the easy way to set a gateway for eth0 ? ifconfig eth0 LANip ? <1> on backup run rsync -avz --delete rsync://192.168.0.5:/<rsync title>/var/www/ /var/www/ <1> OneWicked1 configure your system for the gateway and restart network services <1> OneWicked1 what distro you using? <5> debain ( shell only ) <1> the rsync title is the [name] you put in rsync.conf on the server <1> OneWicked1 i think thats /etc/network but i'm rusty with debian <0> don't have an rsync.conf <1> you should have one on your server (not backup, the one your backing up) <1> you should have a daemonized configuration on the server your copying from <6> evening everyone, having some sound quality issues on my box, running FC4 with ALSA sound system with my wonderful on board Intel sound and i'm having some quality issues, i can't quite put my finger on it but it just sounds like garbage, almost like it's running in 22k instead of 44k or something, anyone have any clue what i can do to fix this ? <0> it should be in /etc/ right ? <7> OneWicked1 /etc/network/interfaces needs to be modified <4> TheZuule: maybe it's kernel latency, what's your default scheduler ? <6> drkwolf: couldn't tell ya, all i know is the sound is less than normal quality, not lagged just not what i would consider decent sound <6> drkwolf: almost like it's 8 bit or reduced sampling rate <0> redragon ? <1> yes <4> TheZuule: the sound quality doesn't degrade under heavy load ? <6> drkwolf: no it's equally garbage in any app regardless of what's going on in the background :) <0> I don't have rsync.conf <0> it's not in /etc/ <0> should it be there or somewhere else ? <1> you need to put it there <6> i'm looking through the /etc/alsa folder configs but i'm not seeing anything except the dmix.conf file even mentioning a sampling rate and that's listed at 48k which should be okay i think <1> unless you have an /etc/rsync <1> its probably not there by default, you have to create it <0> what options should I use ? <0> I'm creating it on the main server right ? <1> http://paste.getlinuxhelp.org/2608 <1> try that <0> thanks am trying <4> TheZuule: it seems like a driver problem (or a miss configuration ) <6> and somehow fedora loads up alsa without an /etc/init.d entry so i cannot reload the sound drivers without rebooting the machine, anytime i try to use modprobe it shows the modules as being locked even if no apps are using them <8> i'm quite &?&?% rusty and just can't remember the line ... i just installed a full install of slackware 10.2 and no lilo or stuff like hat i made a boot disk during install when i boot and the disk loads i login as root and i just can't remember what to type to log onto graphical mode :p <6> drkwolf: i just tried adjusting the rate in dmix.conf down from 48000 to 44100, brb let me see if that had any effect <1> GaTeSS dont know much about snackware but try startx <8> Redragon ok thanks ! :) <9> noip2: /lib/libc.so.6: version `GLIBC_2.3' not found (required by noip2) <--- help <0> redragon <0> rsync -avz --delete rsync://192.168.0.5:/rsync.conf /home/jcmoussin/ /home/jcmoussin/ <0> rsync: failed to connect to 192.168.0.5: Connection refused (111) <0> rsync error: error in socket IO (code 10) at clientserver.c(94) <4> noip2: what's u distro ? <9> e-smith <1> no slm you need to create rsync.conf on the remote machine, if you used the example i pasted then it would be rsync -azv --delete rsync://192.168.0.5:/backup/home/jcmoussin/ /home/jcmoussin/ <6> WOOT i got it, oversampling for the loss
Return to
#linuxhelp or Go to some related
logs:
#c++ misskitten lyrics #linuxhelp radiator radius ssh* #asm #linux #AllNiteCafe mayer arar fc5 config_4kstacks childpor+side
|
|