rsync -vae ssh 12.123.123.123:/home/dwhsbackup/daily/username/ /backup/cpbackup/daily2/username/ –bwlimit=10000 –exclude-from ‘/root/exclude.txt’
Entries Tagged as 'Linux Tricks'
My new favorite rsync command
March 3rd, 2010 by EZ linux · No Comments
Tags: Linux Commands · Linux Software / Scripts · Linux Tricks
Calm down rsync if it overloads your IO memory or CPU
March 3rd, 2010 by EZ linux · No Comments
The trick is to limit I/O bandwidth for rsync. The –bwlimit option limit I/O bandwidth. You need to set bandwidth using KBytes per second. For example, limit I/O bandwidth to 10000KB/s (9.7MB/s), enter: rsync –delete –numeric-ids –relative –delete-excluded –bwlimit=10000 /path/to/source /path/to/dest/? 10 megs a second is plenty of speed and will keep the server running [...]
Tags: Cheat Sheets · Linux Commands · Linux Security · Linux Software / Scripts · Linux Tricks
rsync running slow?
March 3rd, 2010 by EZ linux · No Comments
Today I was transferring files through rsync it was taking forever, my guess was the new server or old server was out of memory so I killed some procs and even rebooting the server but still it was crawling. So I thought I would think out of the box and after a couple trial and [...]
Tags: Hardware · Linux Commands · Linux Tricks
Free /usr partition space by a symlink to domlogs
February 10th, 2010 by EZ linux · No Comments
First move the domlogs folder to the backup partition: mv /usr/local/apache/domlogs /backup Then create a symbolic link to it: ln -s /backup/domlogs /usr/local/apache/domlogs
Tags: Linux Commands · Linux Tricks
Show All Running Processes in Linux
January 21st, 2010 by EZ linux · No Comments
To see every process type: ps -A To see every process except what’s running from root type: ps -U root -u root -N
Tags: Cheat Sheets · Linux Commands · Linux Tricks
Flushing iptables
January 21st, 2010 by EZ linux · No Comments
iptables can block many different things and often it will block good servers inside of a network. The best to see if it’s a iptables issue. Try to clean them out with this if you have CSF on the server: csf -f If you still have a issue try to stop iptables like this: service [...]
Tags: Linux Commands · Linux Security · Linux Tricks
How to reduce or free space in /usr partition
January 13th, 2010 by EZ linux · 1 Comment
1. Restart the httpd service. This might free a little space some times. 2. Check for apache logs like error_log, access_log , suexec_log in /usr/local/apache/logs . These can either be cleared off or if you need the logs then you can take a zipped copy and keep it aside. 3. Same can be done for [...]
Tags: Cheat Sheets · Linux Tricks
Creating a SSH key
November 26th, 2009 by EZ linux · No Comments
ssh-keygen: password-less SSH login SSH is often used to login from one system to another without requiring passwords. This requires you generate your own personal set of private/public ssh keys. ssh-keygen is used to generate that key pair for you. Here is a session where your own personal private/public key pair is created: root:~> ssh-keygen [...]
Tags: Linux Tricks
Have root logins emailed to you
November 24th, 2009 by EZ linux · No Comments
1. Login to your server and su to root, unless you logged in as root already. 2. cd /root (unless your default login folder is already root) 3. pico .bashrc (or use your favorite editor) 4. Scroll to the end of the file then add the following: echo ‘ALERT – Root Shell Access (YourserverName) on:’ [...]
Tags: Linux Security · Linux Tricks
Need space on a cpanel server?
November 10th, 2009 by EZ linux · No Comments
Here is some common places you can find some junk to remove: find /backup/cpbackup/daily -name core.* -exec rm {} \; find /backup/cpbackup/daily -name *.*.mbox:2, -exec rm {} \; find /backup/cpbackup/daily -name *.msg” -exec rm {} \; find /backup/cpbackup/daily -name *.msg” -exec rm {} \; find /backup/cpbackup/daily/ -name *.*.dwhs1234.dwhs.net:2, -exec rm {} \; find /backup/cpbackup/daily/ -name [...]
Tags: Cpanel and WHM · Linux Tricks
