Rsync Exclude An Entire Directory
rsync -avz -e ssh --delete --exclude=/home/server/logs/
I want to exclude the logs directory from being transferred, that doesn't work.
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Move The Entire Contents Of A Directory Tree To Another Directory
I want to move the entire contents of a directory tree to another directory. So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too. Im running CENTOS latest version.
View Replies!
View Related
Using Rsync To Backup An Entire Server
The backup program (cpbackup) that comes with WHM/Cpanel is not ideal for our current situation. We have lots of third party applications installed on our server along with many customized configuration files. We need a solution that will backup everything and allow for fairly simple restoration. How viable is rsync for full server backups? Can it handle 100 GB of data? More importantly, how would you restore the backup to a new server? If the new server already has an OS the restored files would break the system, right?
View Replies!
View Related
.htaccess To Exclude Specific Geographic Areas
I have a client who uses formmail on our dedicated server(another 140 clients also share this PLESK/LINUX server). While the formmail script has not been hacked, some schmuk spends the time to fill it out with spam 5-6 times a day and sends them to the client. I verified the emails go only to the site owner and nobody else. QUESTION: Is there a way to exclude the entire world and only allow visitors from the metro Chicago area? This would need to be done via .htaccess and not IPTABLES, as the other sites on the server draw world wide traffic. I'm scratching my head on this, but if possible it would exclude our schmuk friend while allowing the local traffic this client draws from.
View Replies!
View Related
Backing Up Entire Website
we dont host our own website, but recenty our server crashed, and our hosting provider was supposed to be backing things up. They told us that the entire server crashed and the backups were on the same server so we lost everthing. we actually did end up getting evertying back but it took nearly a week to get back online. they said they are now backing up everthing in a remote location so this wont happen again, but we dont want to put this in their hands anymore, we didnt even get everything back .htaccess, hidden files, subdomains were not backup up and lost. So we want to do our own backing up. Is there some thing I can set up as a cron task to weekly automatically backup every single file on the server, and the database? We think this would be very beinificial to us as we lost alot of money from this ordeal and we do not want it to happen again.
View Replies!
View Related
So What Exactly Can Take Down An Entire Vps Node
I figure while I am twiddling my thumbs here waiting for my host to tell me what the heck happened for the second time in two or three months why they have to do an entire VPS hard restart, which of course causes another hour of fck delays, that I'd ask some of the more skilled and experience folks here, how? Just before it happened, as I was watching, the load shotup over 1, 2, 4, 20, 30 boom. (I opened a ticket at 4) Shouldn't virtuozzo always guarantee a certain amount of cpu and bandwidth to the node root? Why do they have to hard reboot and not access it directly and stop the badly behaving vps? Better yet, why isn't the badly behaving vps stopped automatically by virtuozzo? (oh and am I an idiot for putting up with over two hours of downtime?)
View Replies!
View Related
Logs - Entire List
Just got off the phone with tech support and they noticed that someone was trying to gain brute force entry to our VPS. We want to view our logs but can only see the last 250 lines or so when using this command inside putty: tail -9000 /var/log/messages How do we see / copy the entire 9000 entries to view in a text editor? Any tips would be great. I am a newbie at this.
View Replies!
View Related
Working Out Power Usage Of Entire DC
Yet another question for you all. As part of my remit I need to work out power usage across the DC. It's not huge. Approx 300 servers across 50 physical servers (BL7000c with BL46x series blades) as well as several sans/disk arrays (DotHill, HDC, HP MSA) and appliances, Ciscos, POE 8xxx series procurves etc) All these are racked up and being fed from 32Amp APC PDUs (without monitoring). It's three phase in, single phase out. We can't really run 3 phase because I am not allowed to run it due to the 6 foot rule. Our UPS is rated at 30KVA but we are running it at the max at around 24KVA. What I need to do, is work out on an individual basis how much power each one draws, ideally without a power down. The reason, as well as identifying the power hogs (such as several SUN V series servers), is to reduce the overall carbon footprint and energy costs.
View Replies!
View Related
Blocking Entire Countries In IIS
I have come across an issue where traffic from India is hurting my business. What I have is a number of job boards. Realistically, the only issue I am having is with IT and Engineering positions being applied for heavily by people in India. Since my customer base is all in the USA, I would like to just block India. While I know this is easy with Apache using a .htaccess file, I am using IIS on server 2007. Does anyone have any idea on how to do this easily with the large number of IPs that India uses?
View Replies!
View Related
Manual Backup For Entire Site
am hosting with servage most such hosts dont provide backup for ur files in case ur moving to other host so i was wondering if i can manually through FTP download my enitre directory including all files (html, jpg, PHP SCRIPTS) and manually reupload them onto the other host i will move to soon will that actually work and for MySql databases i have created a PROPER backups via their auto backup system they only lack backup for the files itself only, MySql is fine will restoring the MySql databases but via a different control panel (CPanel) will it possible?
View Replies!
View Related
Entire Disk Encryption [Linux]
I'm contemplating creating a website that could store extremely sensitivity information. It's more than likely that a MySQL database would house this information. My question is. Does anybody have any experience when it comes to encrypting an entire server disk? I've searched online with disappointing results.
View Replies!
View Related
301 Redirect Entire Domain With IIS
I always use Apache and it's easy to redidrect an entire domain in the htaccess. Code: RewriteCond %{HTTP_HOST} ^www.domain1.com$ RewriteRule ^(.*)$ [url]$1 [R=301,L] For a site I'm working on I need to achieve the same thing with IIS but have no idea how to and the technician claims it can't be done. Surely, that's not the case. Any ideas? By the way I want the exact same effect as the above not just a generic redirect that sends everthing to the home page of the new domain.
View Replies!
View Related
How To Ban A ENTIRE Top-level Domain
how to ban an entire top-level domain? For example ban everyone from Russia by coming from the .ru domain? Or everyone from Lithuania by somehow banning everyone coming from .It ip address. I've had some people from those places try to hack my site and am fed up with it. So I want to ban those two entire countries for the time being using cPanel X's "IP Deny Manager". By the way I am not a technical person. Just your every day person running a site.
View Replies!
View Related
How To Get A Copy Of Entire Site Without FTP Access
to get a copy of their entire site onto our servers. The problem is that they have no backups, and their current host has denied them access to their account. (It's a long story.) Rather then try and fight with their old host, I wonder if it's easier to just run some kind of "website copy" program and grab a copy of all pages and images, linked files, etc.. Their current website pages are served using an ASP database application, but the copy they need only has to work. It doesn't need to be dynamic, etc... as long as all the pages are there it's good.
View Replies!
View Related
How To Copy Entire Hard Drive To New Hdd In Same System ?
I have a system that need to be formated, before i do that i want to backup everything (etc,bin,tmp...) to new hard drive (external hard drive) which connected to system by firewire. Is there any command that i can copy entire the hdd to new hdd ? I used to use this "cp -R folder folder " but it takes too long. Any suggestion?
View Replies!
View Related
ModVPS.com Review (Or How Lost A Entire Year Work)
We are resellers from ResellerZoom / ModVPS, at this moment we have about 10 accounts (8 reseller accounts and 2 VPS). The problem starts some days ago, when they do a servers cage movement having us offline for about 8 hours at various servers. Well, we have experienced various connectivity problems with them, and this was a major problem but we waited fine. Yesterday. we receive an e-mail from a VPS client telling us what their sites are all showing codification problems. We opened a ticket with ModVPS and just wait their reply. They told us that we should contact the script developer about the errors, but the problem appears at a lot of different scripts hosted on the same cPanel account. Because that, all appears to be a hacker attack. Then, we consider that the better solution is to restore a full VPS backup, and we communicate this to ModVPS staff. And... Surprise! ModVPS don't have ANY backup for our VPS. Anything! That was one of my pre-sales question, and at that time they warrantied us a weekly backup. We are still trying to get contact with them, but at this moment has passed 17 hours from their last answer and we are still waiting for it.
View Replies!
View Related
RSync
I made some data backup on one of the backup servers using rsync. How can I restore it to the new server now? My account is ready on new vps and all I need is pull the data back from backup server to new vps account. I used this command previously Quote: rsync -avz -e ssh /home/user1 backupuser@backup.server.com:user1
View Replies!
View Related
Anything Better Then Rsync
Is there anything better then rsync to replicate files (twice a day) on servers located in seperate datacenters? Looking for more of a free to cheap solution though will also be interested in the higher end solutions later on.
View Replies!
View Related
Cpanel Or Rsync?
I am using BQbackup to auto backup my CPanel VPS and was wondering whether it is best to use CPanel's own backup service which automatically backs-up the vps daily or should I use the rsync script that bqbackup provides? Which is easier to restore and more reliable?
View Replies!
View Related
RSYNC Tutorials?
Looking for an RSYNC tutorial, something that focuses on backing http data, exporting the databases then transferring offsite to a receiving rsync server once a week. Something that's understandable and logical would be great, happy to work through over the next week and continue more in depth with it.
View Replies!
View Related
Rsync Instructions
I have been trying to setup rsync on my server and following these instructions http://www.bqbackup.com/setup.html The problem is I keep getting errors. On this step, ssh-keygen -t rsa -N I edited it and did ssh-keygen -t rsa --N becauseI got an error saying it need the '--' before the N. So after getting through that part, I got these questions asked Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: I left the passphrase empty, and then when it asked where to save to, I just typed in 'rsa'. Then it gave me some fingerprint. Then I get to the step, # scp ~/.ssh/id_rsa.pub yourusername@yourusername.bqbackup.com:keys/server1 # ssh yourusername@yourusername.bqbackup.com mergekeys But I get errors saying -bash: cat~/.ssh/id_rsa.pub: No such file or directory I dont get what I'm doing wrong. If somebody doesnt mind, can you please re-write the steps on getting this working, or maybe tell me where I am going wrong if the tutorial is correct?
View Replies!
View Related
Update Rsync
Current, 2.6.3 came with my centos 4.4 cpanel server, I tried updating it to latest 2.6.9. However, when I type "rsync" it's pointing to 2.6.3 How can I remove the old version or reinstall over it?
View Replies!
View Related
Rsync And Cron
I have a bit of a strange problem, I have an rsync command setup in the servers crontab and from the cron log it show it ran the command but the files don't copy to the backup server. If I take the rsync syntax and run it manually all the files copy across with no errors, but I can't figure out why the cronjob doesn't work properly.
View Replies!
View Related
Rsync And Passphrase
I'm trying to configure rsync to backup my vps data to an rsync backup provider. The problem that I am having is that each time I try to run rsync it prompts for the passphrase. I did some reading and it seems (and maybe this is not correct), that in order to do unattended rsync (e.g. using cron), that you need to use a key that doesn't have a passphrase generated. If this is the case, is it true that it's not a good idea to use a key that doesn't have a passphrase?
View Replies!
View Related
RSync-over-SSH
i have two srevers one is Dedicated Server and the secound is for backup . well , i login to the backup server and creat ftp account . i wanna make the server save the weekly backup . the backup path is /backup the copmany of the backup server said " To RSync your data to your backup server, type: "rsync -av --progress -e ssh @" this will put all the files in your home directory..." i dont know how to use this command on the Dedicated Server .
View Replies!
View Related
Setting Up Rsync
I got one of those cheap $10 servers from hostmds to use to backup my vps. Know I just need to know how do I setup rsync to backup my vps nightly? Any links to good guides to do this would be great. I looked on google, but am hoping someobody knows a guide that is simple to follow.
View Replies!
View Related
Rsync Setup
I am in the process of setting up a cronjob so I can run rsync automatically every day. But I want to know is it ok to exclude the following folders? /home/.cpcpan/ /home/cpeasyapache/ /home/src/ <!--- This folder I made to put files in before I install /home/MySQL-install/ /home/.cpan/ As from what I understand cPanel/WHM makes these folders, and there no user data in these folders
View Replies!
View Related
Rsync Copy
I have wrote a small script which copies file names which has name as *default* from backup to users main folder. It works fine with one folder but doesn't copy files from sub-folders. it works with all the sub-folders as well? HTML Code: #!/bin/bash for i in $(ls /var/cpanel/users) do rsync -vrplogDtH /backup/cpbackup/weekly/$i/homedir/public_html/*default* /home/$i/public_html chown -R $i.$i /home/$i/public_html/*default* done
View Replies!
View Related
Rsync Between Two Different Server
i have two differnt server at two differnt datacenters,with same contant,runing under subdomain eg main domain is domain.com and subdomain is sub.domain.com both are same site,i used this to reduce server load and share request,but the problem iam haveing when update any stuff i need to update on both server it bit diffcult any way to update contant via rsync between the two servers?
View Replies!
View Related
How To Backup To Your PC Using Rsync
I use bqbackup.com in addition to ServInt's backup. The ServInt backup is inaccessible to me and can be restored only by their NoC. Is there a way for me to download the backup files from bqbackup.com to my PC? I am using Win XP Pro. I backup the entire VPS, but I want to be downloading only the changes made each day after the initial download to my PC.
View Replies!
View Related
Rsync Notification
I'm running rsync in cron jobs. is there a way to be notified via email when the job is done plus the log? I'd really like to know how long it's taking to complete and whether it's running properly or not.
View Replies!
View Related
Rsync Recovery
I am trying to recover some backups on the server by rsync the home dir from BQbackup to my server. I deleted 1 file to see whether it actually works. I executing this command on the server: rsync -avz -e ssh username@username.bqbackup.com:path.to.home.dir /home I saw that it downloaded the file I deleted, however after checking on FTP if the file was recovered it actually wasn't. Is there something wrong in the command I used as it seems that it is not recovering any files.
View Replies!
View Related
Rsync / Backup
I am setting up a mirror server to kick on in the event my main server fails and I need some help with syncing the two. It is my understanding I can use rsync to mirror the two. But, will that cover everything (ie. database, mail, etc) or only files?
View Replies!
View Related
Setting Up Rsync
im trying to setup rsync to mirror my FreeBSD box to my CentOS box. I have rsync moving everything in /etc/, /usr/, /home/. The rsync daemon is hard to get running on CentOS (need to make startup scripts and all) so I was wondering if I can just make a user on the centOS box for rsync:rsync and transfer it as root fromt he freeBSD box to the centOS box using ssh keys. Can I do this? Someone said this won't be possible because rsync:rsync will not be able to read the files owned by root:wheel. Is this true?
View Replies!
View Related
Using Rsync And Ftp
Does rsync required to be installed on both servers for it to work? Can rsync work with ftp only on the remote server? Can you guys list some typical rsync shell command to help me get started...
View Replies!
View Related
Rsync Backup
I am using rsync to database and i found out it corrupted my database. I should have used mysql dump before backing up the data..The problem with taking mysql dump each is that it takes a long time and resources as database is around 10 GB if i want to take backups every 4 hour, whats the best way as mysql dump causes server load problem
View Replies!
View Related
Rsync Setup :: Password
I am wanting to setup rsync to always login, so I don't want to use keys. Is it possible to put the password in the rsync command leave. If so how do I do this? Or do I have to use: --password-file=/path/to/password/file
View Replies!
View Related
Rsync - High Load
I am using rsync to transfer files (tar.gz) between servers. However, it makes server load increasing 3-4. Normally, server load can be around 1, but when doing the transfer, it can go up to 5+ Is there anyway to reduce the load when doing rsync?
View Replies!
View Related
So I Do An RSync Backup - How Do I Restore It?
Backing up a server is obviously very important. Lets say I do a daily rSync backup and eventually my server HDD crashes, I know it isn't just a 'one click' job to restore my backup but what is it necessary to do in order to carry out a complete and effective restore back to how it was? A step-by-step 'tutorial' on restoring an rSync backup would be helpful not just to me but to many 'would-be' server administrators.
View Replies!
View Related
Rsync With Password File
I have created a password file in /root/passw.txt then run command rsync -ave 'ssh -p 1234' --password-file=/root/passw.txt admin@10.0.0.10:/home/admin/backups/* /backups But it still asks for the password. How can I fix it?
View Replies!
View Related
Second Time To Run Rsync?
one day later, if I run the following command again, the command is same as the one run by the first time. rsync -avz username@IP:/home/asite/public_html/ /home/asite/public_html/ does it mean rsync will just check and copy the newer folders and files from the last copy?
View Replies!
View Related
Saving Space With Rsync
Just wondering if you guys had any resolutions to this. We are looking to save space on our rsync backups. I know you can use the --compress, or -z and it compresses data on the fly to save bandwidth but is there anyway to keep the data compressed so it takes up less space once it is on the server and still make it so it only copies over the file changes? If not, anyone have any suggestions on how to save space with rsync backups?
View Replies!
View Related
|