rsync --archive --progress firstname.lastname@example.org:/var/www/site/htdocs/ ./
If you are getting errors similar to the ones below, keep reading for a fix.
Err http://http.us.debian.org wheezy/main mipsel Packages 404 Not Found [IP: 184.108.40.206 80] Err http://http.us.debian.org wheezy/contrib mipsel Packages 404 Not Found [IP: 220.127.116.11 80] Err http://http.us.debian.org wheezy/non-free mipsel Packages 404 Not Found [IP: 18.104.22.168 80] W: Failed to fetch http://http.us.debian.org/debian/dists/wheezy/main/binary-mipsel/Packages 404 Not Found [IP: 22.214.171.124 80] W: Failed to fetch http://http.us.debian.org/debian/dists/wheezy/contrib/binary-mipsel/Packages 404 Not Found [IP: 126.96.36.199 80] W: Failed to fetch http://http.us.debian.org/debian/dists/wheezy/non-free/binary-mipsel/Packages 404 Not Found [IP: 188.8.131.52 80] E: Some index files failed to download. They have been ignored, or old ones used instead.
For normal servers
/etc/apt/sources.list and replace the current servers in the file with
Example – before
... deb http://http.us.debian.org/debian wheezy main contrib non-free
Example – after
... deb http://archive.debian.org/debian wheezy main contrib non-free
For Ubiquity EdgeOS routers
SSH into the console and write:
config set system package repository wheezy url http://archive.debian.org/debian commit ; save apt-get update
Say that you have multiple log files for Nginx, Apache or any other software that you would like to tail. You can do this easily with
tail like so:
tail -f /var/log/nginx/*.log
tail -f /var/log/apache2/*.log
You need to have a fairly recent version of
tail to use this. It works on Ubuntu 16.04 with
tail version 8.25.
EasyEngine provides you with 1GB of swap space by default, but sometimes you’d like a little bit more. Here is how you can increase the swap space:
/etc/dphys-swapfile and set the following:
dphys-swapfile swapoff dphys-swapfile setup dphys-swapfile swapon
That’s it! Verify your new swap space with
Simple way to clean up your repository if you have a lot of checked our branches.
git branch | grep -v "master" | xargs git branch -D
ls on a folder with many files or folders in it (>20 000) can take minutes or even hours. To speed up the process you can combine the unsorted output of
ls (which is fast) with the
sort command, like this:
ls -U | sort
systemctl set-default multi-user.target
systemctl set-default graphical.target
du ./ -h --max-depth=1 | sort -h
56K ./.subversion 100K ./autoremove-attachments 116K ./skgRnh 120K ./ioping-0.6 124K ./mysqltuner-new 144K ./.pip 228K ./move-2013-07-29 436K ./admin-block-country 668K ./theme-cloc-test 1.5M ./.vagrant.d 1.8M ./rubygems-1.8.24 2.9M ./mainwp-test
sudo apt-get install unattended-upgrades sudo dpkg-reconfigure --priority=low unattended-upgrades
Answer “Yes” in the dialogue that appears and you’re done!