Auteur Topic: Synology instalatie backuppen (DS207+)  (gelezen 6530 keer)

Offline Gotcha

  • Bedankjes
  • -Gegeven: 0
  • -Ontvangen: 0
  • Berichten: 11
    • http://www.bobhamers.nl
Synology instalatie backuppen (DS207+)
« Gepost op: 29 januari 2008, 13:39:12 »
Ik vroeg me af of het mogelijk is de installatie van de server te backuppen.
Zodat wanneer ik hem eens wil formatteren of er iets mis gaat ik gewoon alles terug kan zetten. Ik bedoel de volledige installatie inclusief dingen zoals SABnbd+ en KissDX.

Offline grafcom

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 1
  • -Ontvangen: 0
  • Berichten: 272
Synology instalatie backuppen
« Reactie #1 Gepost op: 13 februari 2009, 13:15:39 »
Deze vraag staat er al vanaf 29 januari 2008!!! en ik zie hier nog geen reacties.

Ik kom hier terecht omdat ik me ook afvraag of, en hoe, ik een backup kan maken van de volledige installatie van de DS107+ op bijv. een USB stick.

Ik kreeg hier ergens anders wel een link naar:

http://www.synology.com/wiki/index.php/ ... ed_storage

maar hoe dit te gebruiken? Geen idee.... nog.

Dus bij deze, deze post nieuw leven ingeblazen.

Groeten,
Grafcom

Offline wizjos

  • Administrator
  • MVP
  • *
  • Bedankjes
  • -Gegeven: 123
  • -Ontvangen: 181
  • Berichten: 1.999
Re: Synology instalatie backuppen (DS207+)
« Reactie #2 Gepost op: 13 februari 2009, 16:48:01 »
Gotcha, Grafcom,

Ik heb dit backupscript zelf in gebruik (met een kleine wijziging, waarover straks meer) Mijn script ziet er als volgt uit:

#!/bin/sh

##########################################################################
#   RSYNC BACKUP SCRIPT
#
#   -h = help
#   -s = source of rsync backup (music, photo, web, ....) - No Spaces
#   -e = Ext Drive destination of backup (USB1, USB2, SATA)
#   -d = Destination Directory on External Drive from top level *share/(.....) - No Spaces
#   -p = Backup Partition Type is EXT3
#   -u = Update mode
#   -l = log file
#   -q = quiet
#   -v = verbose
#   -n = No Execute Rsync just check validity of other switches
##########################################################################

#***************************************************************
# Default Variables  
#**************************************************************

VERSION="1.0 adapted by Wizjos"

#***************************************************************
# Functions  
#***************************************************************

print_header()
{
  echo ""
  echo ""
  echo "##############################################################################"
  echo "#                     rsync_backup.sh - version $VERSION                      "
  echo "##############################################################################"
  echo ""
 
}


#***************************************************************
# Get Options from the command line  
#***************************************************************

while getopts "s:d:e:l:phqvnu" options
 do
   case $options in
s ) opt_s=$OPTARG;;
d ) opt_d=$OPTARG;;
e ) opt_e=$OPTARG;;
l ) opt_l=$OPTARG;;
p ) EXT3_MODE="-go";;
u ) UPDATE_MODE="-u";;
h ) opt_h=1;;
n ) opt_n=1;;
v ) RSYNC_MODE="-v";;
q ) RSYNC_MODE="-q";;
  ? ) opt_h=1;;
   esac
 done
 
#***************************************************************
# Print Help
#***************************************************************

if [ $opt_h ]; then

    print_header
echo "Usage:                                                                   "
echo "                                                                         "
echo "  rsync_backup.sh -s <dir> -e <ext_drive> -d <dir> [-l <log>] [-q -h -v -n]"
echo "                                                                         "
echo " -h = Help                                                              "
echo "                                                                         "
echo "            * List this help menu                                        "
echo "                                                                         "
echo " -s = Source of rsync backup                                            "
echo "                                                                         "
echo "            * Directory in the / that should be backed up                "
echo "            * i.e. (/volume1/music, /volume1/photo, /volume1/web, ....)  "
echo "            * No Spaces, no trailing /                                   "
echo "                                                                         "
echo " -e = External drive destination for the backup                         "
echo "                                                                         "
echo "            * i.e. (USB1, USB2, SATA)                                    "
echo "                                                                         "
echo " -d = Destination directory on Exernal Drive for the backup             "
echo "                                                                         "
echo "            * i.e. the path from top level [usb/sata]share directory     "
echo "            * No Spaces, no trailing /                                   "
        echo "                                                                         "
echo " -p = Backup Partition Type is EXT3                                     "
echo "                                                                         "
echo "            * Uses the -g and the -o options for the rsync               "
        echo "              to maintains group and owner on files. Do not use on FAT32 "
        echo "                                                                         "
        echo " -l = Log file for output                                               "
        echo "                                                                         "
        echo "            * If specified any output of the rsync will go to the log    "
        echo "              file passed in                                             "
        echo "                                                                         "
echo " -q = Quiet mode                                                        "
echo "                                                                         "
echo "            * Run rsync command with -q switch to supress all output     "
echo "              except errors                                              "
echo "                                                                         "
echo " -v = Verbose mode                                                      "
echo "                                                                         "
echo "            * Run rsync command with the -v switch to use verbose ouput  "
echo "                                                                         "
echo " -n = No Execute Mode                                                   "
echo "                                                                         "
echo "            * Dont Run rsync command just check validity of other switches "
echo "                                                                         "
echo "  -u = Update mode                                               "
echo "                                                                         "
echo "            * This forces the script to skip files that already exist    "
echo "              in the destination                                         "
echo "                                                                         "
echo "----------------------------------------------------------------------------"
        echo "                                                                         "
        echo " Examples:                                                               "
        echo "                                                                         "
        echo "   - Backup music to USB1 drive in the directory foo using verbose mode. "
        echo "                                                                         "
        echo "       % rsync_backup.sh -s music -e USB1 -d foo  -v                     "
        echo "                                                                         "
        echo "   - Backup photo to SATA drive in the top directory to log backup.log   "
        echo "                                                                         "
        echo "       % rsync_backup.sh -s photo -e SATA -d . -l backup.log             "
        echo "                                                                         "
        echo "   - Backup web to USB2 drive in the 2008/jan directory using quiet mode "
        echo "                                                                         "
        echo "       % rsync_backup.sh -s web -e USB2 -d 2008/jan -q                   "
        echo "                                                                         "
echo "----------------------------------------------------------------------------"
exit 1
fi

#***************************************************************
# Get the source of the rsync from the command line -s
#
# - This should be the directory you wish to back up
#  in the /volume1/ directory on the DS.  
#
# i.e music, photo, web, ........
#***************************************************************

#--------------------------------------
# Check to see if -s was passed in
#--------------------------------------
if [ $opt_s ]; then
    PASSED_SOURCE_DIR=$opt_s  
else
    print_header
echo "No source directory for the backup specified."
echo ""
echo "   Use -s <src_dir> on the command line "
exit 1
fi

BACKUP_SOURCE_PREFIX="/volume1/"
#TO BACKUP BEYOND /VOLUME1/SUBDIR (E.G./VOLUME1 AS ROOT) USE: BACKUP_SOURCE_PREFIX="/"
#TO BACKUP FROM ROOT (/) USE:BACKUP_SOURCE_PREFIX=""
#BACKUP_SOURCE_DIR=$BACKUP_SOURCE_PREFIX$PASSED_SOURCE_DIR

#---------------------------------------------
# Check to see if specified source dir exists
#---------------------------------------------
if [ -e $BACKUP_SOURCE_DIR ]; then
    echo ""
else
    print_header
echo "The specified source directory for the backup: $BACKUP_SOURCE_DIR "
echo "does not exist. "
echo ""
echo "Please check the -s option and pass in a valid directory "
exit 1
fi

#******************************************************************
# Get the ext dest drive of the rsync from the command line -e
#
# This should be USB1 or USB2 or SATA
#
# Mounted by the DS as
# - /volumeUSB1/usbshare
# - /volumeUSB2/usbshare
# - /volumeSATA/satashare
#
#******************************************************************

#--------------------------------------
# Check to see if -e was passed in
#--------------------------------------
if [ $opt_e ]; then
    PASSED_EXT_DRIVE=$opt_e
else
print_header
echo "No External Drive for the backup specified."
echo ""
echo "   Use -e [USB1,USB2,SATA]"
exit 1
fi

#--------------------------------------------
# validate the destination Drive passed in
#--------------------------------------------

if [ $PASSED_EXT_DRIVE = "USB1" ] || [ $PASSED_EXT_DRIVE = "USB2" ]; then
BACKUP_DEST_DRIVE="/volume$PASSED_EXT_DRIVE/usbshare/"
elif [ $PASSED_EXT_DRIVE = "SATA" ]; then
BACKUP_DEST_DRIVE="/volume$PASSED_EXT_DRIVE/satashare/"
else
    print_header
echo "Invalid External Backup Destination specified: $PASSED_EXT_DRIVE."
echo ""
echo " Use -d [USB1,USB2,SATA]"
exit 1
fi


#--------------------------------------------------
# Check to see if specified dest drive is mounted
#--------------------------------------------------
if [ -e $BACKUP_DEST_DRIVE ]; then
   echo ""
else
   print_header
   echo "The specified external drive is not mounted: $BACKUP_DEST_DRIVE "
   echo ""
   echo "Please check the -d option and pass in a mounted external drive "
   exit 1
fi

#***************************************************************
# Get the destination of the rsync from the command line -d
#
# - This should be the directory you wish to back up to go to  
#
#***************************************************************

#--------------------------------------
# Check to see if -d was passed in
#--------------------------------------
if [ $opt_d ]; then
    PASSED_DEST_DIR=$opt_d
else
    print_header
echo "No destination directory for the backup specified."
echo ""
echo "   Use -d <dest_dir> on the command line "
exit 1
fi


BACKUP_DEST_DIR=$BACKUP_DEST_DRIVE$PASSED_DEST_DIR

#---------------------------------------------
# Check to see if specified source dir exists
#---------------------------------------------
if [ -e $BACKUP_DEST_DIR ]; then
    echo ""
else
    print_header
echo "The specified destination directory for the backup: $BACKUP_DEST_DIR "
echo "does not exist. "
echo ""
echo "Please check the -d option and pass in a valid directory "
exit 1
fi

#-------------------------------------------------------
# Log Files for Backups
#
#   If log file is specified redired standard out and
#   standard error to the log file
#
#   Will append log and not over write it
#
#   > log 2>&1
#-------------------------------------------------------

#--------------------------------------
# Check to see if -l was passed in
#--------------------------------------
if [ $opt_l ]; then
    PASSED_LOG_FILE=$opt_l
    LOG_FILE=$BACKUP_DEST_DRIVE$PASSED_LOG_FILE
else
   LOG_FILE="/dev/null"
fi

#---------------------------------------------
# Check to see if specified log dir exists
#---------------------------------------------
BASENAME=`dirname "$LOG_FILE"`

if [ -e $BASENAME ]; then
    echo ""
else
    print_header
echo "The specified log directory for the backup: $BASENAME "
echo "does not exist. "
echo ""
echo "Please check the -l option and pass in a valid directory "
exit 1
fi

#***************************************************************
# Execute the Rsync
#***************************************************************
echo $0 $* | tee -a $LOG_FILE
echo "                                                                      " | tee -a $LOG_FILE
echo "                                                                      " | tee -a $LOG_FILE
echo "######################################################################" | tee -a $LOG_FILE
echo "#            rsync_backup.sh - version $VERSION " | tee -a $LOG_FILE
echo "######################################################################" | tee -a $LOG_FILE
echo "#                                                                     " | tee -a $LOG_FILE
echo "# Starting the requested rsync backup                                 " | tee -a $LOG_FILE  
echo "#                                                                     " | tee -a $LOG_FILE
echo "#   -Command     :  rsync -rlptD --delete --exclude="@eaDir" $RSYNC_MODE $EXT3_MODE $UPDATE_MODE" | tee -a $LOG_FILE
echo "#   -Backup Src  :  $BACKUP_SOURCE_DIR " | tee -a $LOG_FILE  
echo "#   -Backup Dest :  $BACKUP_DEST_DIR" | tee -a $LOG_FILE  
echo "#   -Log File    :  $LOG_FILE" | tee -a $LOG_FILE  
echo "#                                                                     " | tee -a $LOG_FILE
echo "######################################################################" | tee -a $LOG_FILE
echo "                                                                      " | tee -a $LOG_FILE
((echo "    rsync start at: `date` " | tee -a $LOG_FILE) 3>&1 1>&2 2>&3 | tee -a $LOG_FILE) 3>&1 1>&2 2>&3
echo "                                                                      " | tee -a $LOG_FILE

#--------------------------------------
# Check to see if -n was passed in
#--------------------------------------
if [ $opt_n ]; then
   echo "      ---------------------------------------------------- " | tee -a $LOG_FILE
   echo "       WARNING: NOT RUNNING RSYNC -n SWITCH WAS PASSED IN " | tee -a $LOG_FILE
   echo "      ---------------------------------------------------- " | tee -a $LOG_FILE
else
((rsync -rlptD --delete --exclude="@eaDir" $RSYNC_MODE $UPDATE_MODE $EXT3_MODE $BACKUP_SOURCE_DIR $BACKUP_DEST_DIR | tee -a $LOG_FILE) 3>&1 1>&2 2>&3 | tee -a $LOG_FILE) 3>&1 1>&2 2>&3
fi

echo "                                                                      " | tee -a $LOG_FILE
((echo "    rsync end at  : `date` " | tee -a $LOG_FILE) 3>&1 1>&2 2>&3 | tee -a $LOG_FILE) 3>&1 1>&2 2>&3

Een beste lap :mrgreen:

Wat heb ik hiermee gedaan?
Ik heb deze code opgeslagen in een bestand BackupSyno.sh op /volume1 (plaats is niet zo heel erg van belang...). Wel van belang is dat je er voor zorgt dat er geen ^M's aan het einde van de regel staan. Als je de tekst bv. via kladblok bewaart en vervolgens naar je Syno kopiëert heb je hier last van... Je dient de tekst op te slaan in Unix formaat.
Vervolgens log ik via telnet/putty in op de Syno en geef het volgende commando:

sh padnaarbestand/BackupSyno.sh -s volume1 -d . -e USB1 -l backup.log -v -u
Wat gebeurt er dan?
BackupSyno wordt gestart met als parameters:
-s volume1 (bron van de backup is /volume1)
-d . (doel van de backup is de root van het backupmedium)
-e USB1 (doelschijf is de disk op USB1)
-l backup.log (zo gaat de logfile heten)
-v (laat zien wat er gebeurt)
-u (sla reeds bestaande bestanden in de doeldir over)

Ik schreef al dat ik wat gewijzigd had. Dat betreft het stuk code van regel 161 t/m 164 (BACKUP_SOURCE_PREFIX="/volume1/"
#TO BACKUP BEYOND /VOLUME1/SUBDIR (E.G./VOLUME1 AS ROOT) USE: BACKUP_SOURCE_PREFIX="/"
#TO BACKUP FROM ROOT (/) USE:BACKUP_SOURCE_PREFIX=""
#BACKUP_SOURCE_DIR=$BACKUP_SOURCE_PREFIX$PASSED_SOURCE_DIR
)

In het script zoals dat in de Wiki staat is de BACKUP_SOURCE_PREFIX="/volume1/"...
Aangezien ik geheel volume1 wil backuppen en niet slechts een subdir van volume1 heb ik hier BACKUP_SOURCE_PREFIX="/" staan.
Als je de hele Syno wilt backuppen laat je de prefix leeg en geef je als -s op '/' (zonder de quotes...)

Wellicht behoeft de doeldir ook nog enige verduidelijking (-d .) Als je het script doorneemt zie je dat de backup weggeschreven wordt onder bv. USB1/usbshare. Door nu . als doeldir op te geven wordt mijn hele volume1 onder usbshare weggeschreven.

De log is te vinden in USB1/usbshare als backup.log

Het prettige aan deze manier van backuppen is dat na de eerste keer backuppen enkel de verschillen worden weggeschreven (optie -u). Backuppen duurt eindeloos lang de eerste keer (het gaat niet zo hard naar die usb-schijf), maar een volgende backup overschrijft enkel de toegevoegde/gewijzigde bestanden (en verwijdert de niet meer bestaande).

Succes!

Wizjos
Wizjos.


DS409+    4 x WD10EADS DSM 4.2-3243       [TEST]
DS214play 1 x WD20EARX DSM 6.1.4-15217-3  [PROD]
DS1513+   5 x WD80EFZX DSM 6.1.4-15217-5  [PROD]
RT1900ac               SRM 1.1.6-6931-1   [PROD]


Is RAID hetzelfde als een backup?
Goeie schijven voor je NAS? Neem Western Digital!

Offline grafcom

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 1
  • -Ontvangen: 0
  • Berichten: 272
Re: Synology instalatie backuppen (DS207+)
« Reactie #3 Gepost op: 15 februari 2009, 12:43:00 »
Hallo Wizjos,  :D

Dit aangepast:

Citaat
BACKUP_SOURCE_PREFIX=""
#TO BACKUP BEYOND /VOLUME1/SUBDIR (E.G./VOLUME1 AS ROOT) USE: BACKUP_SOURCE_PREFIX="/"
#TO BACKUP FROM ROOT (/) USE:BACKUP_SOURCE_PREFIX=""
#BACKUP_SOURCE_DIR=$BACKUP_SOURCE_PREFIX$PASSED_SOURCE_DIR

Vervolgens:

Citaat
sh padnaarbestand/BackupSyno.sh -s / -d . -e USB1 -l backup.log -v -u

Er wordt nu wel een backup, met log file, gemaakt op USB1/usbshare maar wanneer ik in deze map kijkt zie ik niet de backup van de gehele Syno.... Mis ik iets?

Groet,
Grafcom

CORRECTIE:
Er wordt wel een backup.log file gemaakt maar er worden geen bestanden gebackuped!

Offline grafcom

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 1
  • -Ontvangen: 0
  • Berichten: 272
Re: Synology instalatie backuppen (DS207+)
« Reactie #4 Gepost op: 15 februari 2009, 22:09:46 »
Hallo Wizjos,

nog wat zitten proberen, ook de instelling zoals deze op de wiki staat. Blijf hetzelfde resultaat krijgen. Alleen een logfile met, zag ik nu pas, deze melding onderin:

rsync error: syntax or usage error (code 1) at main.c(897)

Heb nog via Google gezocht, wel wat gevonden maar daar wordt ik niet wijzer van.  :mrgreen:

http://www.issociate.de/board/post/3703 ... rsync.html

Groet,
Grafcom

Offline grafcom

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 1
  • -Ontvangen: 0
  • Berichten: 272
Re: Synology instalatie backuppen (DS207+)
« Reactie #5 Gepost op: 16 februari 2009, 11:07:26 »
Hallo Wizjos,

dat is schrikken....... :shock:

Ik heb nog eens een poging gedaan maar dan met het script van de wiki.
Ditmaal werkte het wel, echter in dit script mis ik de -u functie. Je had dus meer aanpassingen gedaan?  :o

Echter, staat er in het logfile een warning (zie Quotes) is dit normaal of ben ik ook wat kwijt?

Citaat
rsync warning: some files vanished before they could be transferred (code 24) at main.c(791)

In de log file staan o.a. deze:

Citaat
building file list ... file has vanished: "/proc/2/exe"
file has vanished: "/proc/2/task/2/exe"
file has vanished: "/proc/3/exe"
file has vanished: "/proc/3/task/3/exe"
file has vanished: "/proc/4/exe"
file has vanished: "/proc/4/task/4/exe"
file has vanished: "/proc/5/exe"
file has vanished: "/proc/5/task/5/exe"
file has vanished: "/proc/11/exe"
file has vanished: "/proc/11/task/11/exe"
file has vanished: "/proc/41/exe"
file has vanished: "/proc/41/task/41/exe"
file has vanished: "/proc/40/exe"
file has vanished: "/proc/40/task/40/exe"
file has vanished: "/proc/108/exe"
file has vanished: "/proc/108/task/108/exe"
file has vanished: "/proc/110/exe"
file has vanished: "/proc/110/task/110/exe"
file has vanished: "/proc/111/exe"
file has vanished: "/proc/111/task/111/exe"
file has vanished: "/proc/122/exe"
file has vanished: "/proc/122/task/122/exe"
file has vanished: "/proc/142/exe"
file has vanished: "/proc/142/task/142/exe"
file has vanished: "/proc/260/exe"
file has vanished: "/proc/260/task/260/exe"
file has vanished: "/proc/477/exe"
file has vanished: "/proc/477/task/477/exe"
file has vanished: "/proc/1023/exe"
file has vanished: "/proc/1023/task/1023/exe"
file has vanished: "/proc/1757/exe"
file has vanished: "/proc/1757/task/1757/exe"
file has vanished: "/proc/1758/exe"
file has vanished: "/proc/1758/task/1758/exe"
file has vanished: "/proc/2635/exe"
file has vanished: "/proc/2635/task/2635/exe"
file has vanished: "/proc/2714/exe"
file has vanished: "/proc/2714/task/2714/exe"
file has vanished: "/proc/2722/exe"
file has vanished: "/proc/2722/task/2722/exe"
file has vanished: "/proc/2723/exe"
file has vanished: "/proc/2723/task/2723/exe"
file has vanished: "/proc/4014/exe"
file has vanished: "/proc/4014/task/4014/exe"
file has vanished: "/proc/4015/exe"
file has vanished: "/proc/4015/task/4015/exe"
done
IO error encountered -- skipping file deletion
./
.mkcert.serial
.rnd
linuxrc -> bin/busybox
bin/
bin/addgroup -> busybox
bin/adduser -> busybox
bin/ash -> busybox
bin/busybox
Citaat
proc/4014/
file has vanished: "/proc/4014/auxv"
file has vanished: "/proc/4014/cmdline"
proc/4014/cwd -> /
file has vanished: "/proc/4014/environ"
file has vanished: "/proc/4014/maps"
file has vanished: "/proc/4014/mem"
file has vanished: "/proc/4014/mounts"
file has vanished: "/proc/4014/oom_adj"
file has vanished: "/proc/4014/oom_score"
proc/4014/root -> /
file has vanished: "/proc/4014/smaps"
file has vanished: "/proc/4014/stat"
file has vanished: "/proc/4014/statm"
file has vanished: "/proc/4014/status"
file has vanished: "/proc/4014/wchan"
proc/4014/fd/
proc/4014/task/
proc/4014/task/4014/
file has vanished: "/proc/4014/task/4014/auxv"
file has vanished: "/proc/4014/task/4014/cmdline"
proc/4014/task/4014/cwd -> /
file has vanished: "/proc/4014/task/4014/environ"
file has vanished: "/proc/4014/task/4014/maps"
file has vanished: "/proc/4014/task/4014/mem"
file has vanished: "/proc/4014/task/4014/mounts"
file has vanished: "/proc/4014/task/4014/oom_adj"
file has vanished: "/proc/4014/task/4014/oom_score"
proc/4014/task/4014/root -> /
file has vanished: "/proc/4014/task/4014/smaps"
file has vanished: "/proc/4014/task/4014/stat"
file has vanished: "/proc/4014/task/4014/statm"
file has vanished: "/proc/4014/task/4014/status"
file has vanished: "/proc/4014/task/4014/wchan"
proc/4014/task/4014/fd/
proc/4015/
file has vanished: "/proc/4015/auxv"
file has vanished: "/proc/4015/cmdline"
proc/4015/cwd -> /
file has vanished: "/proc/4015/environ"
file has vanished: "/proc/4015/maps"
file has vanished: "/proc/4015/mem"
file has vanished: "/proc/4015/mounts"
file has vanished: "/proc/4015/oom_adj"
file has vanished: "/proc/4015/oom_score"
proc/4015/root -> /
file has vanished: "/proc/4015/smaps"
file has vanished: "/proc/4015/stat"
file has vanished: "/proc/4015/statm"
file has vanished: "/proc/4015/status"
file has vanished: "/proc/4015/wchan"
proc/4015/fd/
proc/4015/task/
proc/4015/task/4015/
file has vanished: "/proc/4015/task/4015/auxv"
file has vanished: "/proc/4015/task/4015/cmdline"
proc/4015/task/4015/cwd -> /
file has vanished: "/proc/4015/task/4015/environ"
file has vanished: "/proc/4015/task/4015/maps"
file has vanished: "/proc/4015/task/4015/mem"
file has vanished: "/proc/4015/task/4015/mounts"
file has vanished: "/proc/4015/task/4015/oom_adj"
file has vanished: "/proc/4015/task/4015/oom_score"
proc/4015/task/4015/root -> /
file has vanished: "/proc/4015/task/4015/smaps"
file has vanished: "/proc/4015/task/4015/stat"
file has vanished: "/proc/4015/task/4015/statm"
file has vanished: "/proc/4015/task/4015/status"
file has vanished: "/proc/4015/task/4015/wchan"

Verder staan er nogal wat "denied" files in:

Citaat
proc/2748/task/2748/fd/0 -> /dev/null
proc/2rsync: send_files failed to open "/sys/block/loop0/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/loop1/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/loop2/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/loop3/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/loop4/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/loop5/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/loop6/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/loop7/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/md0/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/md0/md/new_dev": Permission denied (13)
rsync: send_files failed to open "/sys/block/mtdblock0/uevent": Permission denied (13)


proc/2794/rsync: send_files failed to open "/sys/block/mtdblock1/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/mtdblock2/uevent": Permission denied (13)
mem


proc/2794/fd/0 -> /drsync: send_files failed to open "/sys/block/mtdblock3/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/mtdblock4/uevent": Permission denied (13)
ev/null


proc/2848/task/2848/fd/2 -> /dev/null
prrsync: send_files failed to open "/sys/block/mtdblock5/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/ram0/uevent": Permission denied (13)
rsync: send_files failed to open "/sys/block/ram1/uevent": Permission denied (13)
oc/2848/task/2848/fd/3 -> /dev/ttyS1

En nog enkel meer.  :wink:

Is dit logisch of is deze backup nu eigenlijk niet compleet?

Groet,
Grafcom

Offline grafcom

  • MVP
  • *
  • Bedankjes
  • -Gegeven: 1
  • -Ontvangen: 0
  • Berichten: 272
Re: Synology instalatie backuppen (DS207+)
« Reactie #6 Gepost op: 16 februari 2009, 14:20:52 »
Hallo Wizjos,

is dit niet fout in je bovenstaand script?  :wink:

Citaat
BACKUP_SOURCE_PREFIX="/volume1/"
#TO BACKUP BEYOND /VOLUME1/SUBDIR (E.G./VOLUME1 AS ROOT) USE: BACKUP_SOURCE_PREFIX="/"
#TO BACKUP FROM ROOT (/) USE:BACKUP_SOURCE_PREFIX=""
#BACKUP_SOURCE_DIR=$BACKUP_SOURCE_PREFIX$PASSED_SOURCE_DIR

Groet,
Grafcom

Offline wizjos

  • Administrator
  • MVP
  • *
  • Bedankjes
  • -Gegeven: 123
  • -Ontvangen: 181
  • Berichten: 1.999
Re: Synology instalatie backuppen (DS207+)
« Reactie #7 Gepost op: 17 februari 2009, 00:37:24 »
Grafcom,

Je hebt volgens mij helemaal gelijk :oops:

Dank!

Wizjos
Wizjos.


DS409+    4 x WD10EADS DSM 4.2-3243       [TEST]
DS214play 1 x WD20EARX DSM 6.1.4-15217-3  [PROD]
DS1513+   5 x WD80EFZX DSM 6.1.4-15217-5  [PROD]
RT1900ac               SRM 1.1.6-6931-1   [PROD]


Is RAID hetzelfde als een backup?
Goeie schijven voor je NAS? Neem Western Digital!

Offline Cor

  • Bedankjes
  • -Gegeven: 0
  • -Ontvangen: 1
  • Berichten: 5
Re: Synology instalatie backuppen (DS207+)
« Reactie #8 Gepost op: 15 augustus 2009, 22:07:53 »
Hallo,

Als ik het backupscript uitvoer krijg ik de volgende foutmelding:
backupsyno.sh: backupsyno.sh: 1: ?#!/bin/sh: not found
backupsyno.sh: backupsyno.sh: 47: Syntax error: ")" unexpected (expecting "done")

Kan iemand mij helpen met wat ik hier verkeerd doe.

Groeten Cor

Offline wizjos

  • Administrator
  • MVP
  • *
  • Bedankjes
  • -Gegeven: 123
  • -Ontvangen: 181
  • Berichten: 1.999
Re: Synology instalatie backuppen (DS207+)
« Reactie #9 Gepost op: 15 augustus 2009, 23:32:55 »
Cor,

Hoe start je het een en ander? Wat tik je in op de commandline?
Enne, heb je het script via Windows gesaved (regeleinden?)

Wizjos
Wizjos.


DS409+    4 x WD10EADS DSM 4.2-3243       [TEST]
DS214play 1 x WD20EARX DSM 6.1.4-15217-3  [PROD]
DS1513+   5 x WD80EFZX DSM 6.1.4-15217-5  [PROD]
RT1900ac               SRM 1.1.6-6931-1   [PROD]


Is RAID hetzelfde als een backup?
Goeie schijven voor je NAS? Neem Western Digital!

Offline Cor

  • Bedankjes
  • -Gegeven: 0
  • -Ontvangen: 1
  • Berichten: 5
Re: Synology instalatie backuppen (DS207+)
« Reactie #10 Gepost op: 16 augustus 2009, 10:49:53 »
Wizjos,

Ik startte het op met sh backupsyno.sh -s /d -d . e USB1 - backup.log -v -u
Ik heb het script via Open Office op de MAC gesaved (regeleinden ^M stonden er niet in), maar wel wat extra tekens die er niet hoorde.
Na dit aangepast te hebben werkt het script werkt nu wel.

Groeten Cor

Offline wizjos

  • Administrator
  • MVP
  • *
  • Bedankjes
  • -Gegeven: 123
  • -Ontvangen: 181
  • Berichten: 1.999
Re: Synology instalatie backuppen (DS207+)
« Reactie #11 Gepost op: 16 augustus 2009, 13:15:41 »
Cor,

Dan lag daar blijkbaar het probleem :wink:

Succes er mee!

Wizjos
Wizjos.


DS409+    4 x WD10EADS DSM 4.2-3243       [TEST]
DS214play 1 x WD20EARX DSM 6.1.4-15217-3  [PROD]
DS1513+   5 x WD80EFZX DSM 6.1.4-15217-5  [PROD]
RT1900ac               SRM 1.1.6-6931-1   [PROD]


Is RAID hetzelfde als een backup?
Goeie schijven voor je NAS? Neem Western Digital!


 

Synology ziet 2 routers.

Gestart door Klikoo.Board DDNS / Quick Connect / EZ-Internet / Portforwarding

Reacties: 24
Gelezen: 12761
Laatste bericht 29 april 2015, 12:52:42
door Klikoo.
MusicIP op X86 Synology NAS

Gestart door B1tbullBoard Overige 3rd party packages

Reacties: 4
Gelezen: 3027
Laatste bericht 23 mei 2015, 19:00:30
door Grofweg
NAS synology 110j verschil met 213j

Gestart door SynxSyncBoard NAS hardware vragen

Reacties: 1
Gelezen: 1543
Laatste bericht 16 juli 2015, 13:21:21
door Birdy
Blog: Synology live event Dusseldorf 2016

Gestart door PippinBoard Synology Awards & Reviews (NL)

Reacties: 9
Gelezen: 10104
Laatste bericht 16 september 2015, 22:17:21
door Pippin
Werken bij Synology in Parijs?

Gestart door BjörnBoard The lounge

Reacties: 0
Gelezen: 1438
Laatste bericht 10 december 2015, 15:31:00
door Björn