Log into SME Server console as root.
Issue the following command
yum update smeserver-yum
Thats all. It will add the repository on completion
Ready to future-proof your business? Meet NXT Digital, your all-in-one partner for complete digital transformation. We specialise in building custom digital solutions, and support your applications. Don't get left behind—experience the next level of innovation and let NXT Digital transform your vision.
Log into SME Server console as root.
Issue the following command
yum update smeserver-yum
Thats all. It will add the repository on completion
#!/bin/sh
#
# description: usbMountWrapper is the daemon to xxxxxx
#
. /etc/rc.d/init.d/functions
function start()
{
printf "Starting %s: " "usbMountWrapper"
daemon /opt/smebackup/usbMountWrapper &
echo
touch /var/lock/subsys/usbMountWrapper
}
function stop()
{
printf "Stopping %s: " "usbMountWrapper"
killproc usbMountWrapper
echo
rm -f /var/lock/subsys/usbMountWrapper
}
function reload()
{
pid=`pidof ulogd`
if [ "x$pid" != "x" ]; then
kill -HUP $pid 2>/dev/null
fi
touch /var/lock/subsys/usbMountWrapper
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
reload)
reload
;;
status)
status usbMountWrapper
;;
*)
printf "Usage: %s {start|stop|status|restart|reload}\n" "usbMountWrapper"
exit 1
esac
exit 0
tar -czf /media/DRIVENAME/BACKUPNAME.tgz /home
This is the real simple solution to backup one folder, and of course, we have more to backup. So, we introduce the following one:'tar -cz - --files-from '+ FILELIST_TAR + ' | split -b 3880m - ' + TAR_OUTPUT+'.tgz'
Re-constitute properly with this customized restore command:
cat /media/DRIVENAME/BACKUPNAME.tgz.* | tar -zxf -
And of course, I didn't forget the windows user, you can re-constitute the files like this:To enter Vi type:
vi FILENAME
Vi has two modes: Normal (command) mode and edit mode.
Switch to normal mode: <ESC>
Switch to edit mode: i or a
Getting out of Vi (change to normal mode <ESC>):
Exit Vi: :q
Exit Vi (ignore changes): :q!
Save: :w
Save and Exit: :wq
Switch to (edit) an other file:
:edit FILENAME
Getting help:
:help topic