HOWTO: Backup via rsync

На сервере с которого бэкапим:

LOGIN="ssh_логин_бэкап_хостинга"
BACKUPHOST="Адрес_бэкап_хостинга"
DIR_FROM="/папка/которую/бэкапим"
DIR_TO="/Папка/Куда/бэкапим/"

rsync -av -e "ssh -p 22475" --delete $DIR_FROM
$LOGIN@$BACKUPHOST:$DIR_TO

где 22475 номер порта (если не меняли, то 22)

На бэкап машине

rsync -av --delete /папка/куда/бэкапили /Папка/Куда/делаем_еще_одну_копию/

Читать далее

HOWTO: change the current runlevel in OpenSUSE 13.2 (systemd)

Change the current runlevel:

# systemctl isolate runlevel5.target
# systemctl isolate graphical.target
# init 5

Set boot runlevel 2, 3, or 4 (the non-graphical, multi-user level):

# ln -sf /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target

Set boot runlevel 5 (the graphical, GUI level):

# ln -sf /usr/lib/systemd/system/graphical.target /etc/systemd/system/default.target

© http://www.freedesktop.org/wiki/Software/systemd/FrequentlyAskedQuestions/

HOWTO: clear squid cache

systemctl stop squid
# OR:
# squid -k shutdown
#
# check status
systemctl status squid
# set cache directory
CACHEDIRSQ="$(grep cache_dir /etc/squid/squid.conf | awk '$1 ~ /#.*/ {print $3"/*"}')"
# clean
read -p "Are you sure? " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
 rm -fr "${CACHEDIRSQ}"
 # rebuild swap directories
 squid -z
fi
# start
systemctl start squid
systemctl status squid