[Rear-users] SF.net SVN: rear:[420] trunk/usr/share/rear

Schlomo Schapiro schlomo at schapiro.org
Sun May 1 23:59:09 CEST 2011


Hi,

IMHO this should be sufficient to have the result files also saved to NETFS in
the case of rear mkrescue.

Testing is of course welcome, maybe you can find more use cases where this is
not enough. Otherwise we saved ourselves the trouble of splitting up backup into
several substages.

Kind Regards,
Schlomo

On 01/05/11 23:51, schlomoschapiro at users.sourceforge.net wrote:
> Revision: 420
>           http://rear.svn.sourceforge.net/rear/?rev=420&view=rev
> Author:   schlomoschapiro
> Date:     2011-05-01 21:51:51 +0000 (Sun, 01 May 2011)
> 
> Log Message:
> -----------
> ! moved NETFS result file copy to output stage
> 
> Added Paths:
> -----------
>     trunk/usr/share/rear/output/NETFS/
>     trunk/usr/share/rear/output/NETFS/default/
>     trunk/usr/share/rear/output/NETFS/default/10_mount_NETFS_path.sh
>     trunk/usr/share/rear/output/NETFS/default/95_copy_result_files.sh
>     trunk/usr/share/rear/output/NETFS/default/98_umount_NETFS_dir.sh
> 
> Removed Paths:
> -------------
>     trunk/usr/share/rear/backup/NETFS/default/95_copy_result_files.sh
> 
> Deleted: trunk/usr/share/rear/backup/NETFS/default/95_copy_result_files.sh
> ===================================================================
> --- trunk/usr/share/rear/backup/NETFS/default/95_copy_result_files.sh	2011-05-01 21:47:58 UTC (rev 419)
> +++ trunk/usr/share/rear/backup/NETFS/default/95_copy_result_files.sh	2011-05-01 21:51:51 UTC (rev 420)
> @@ -1,21 +0,0 @@
> -#
> -# copy resulting files to network backup location
> -
> -# do not do this for tapes
> -if [ "$NETFS_PROTO" == "tape" -o "$NETFS_PROTO" == "obdr" ]; then
> -	return 0
> -fi
> -
> -test ${#RESULT_FILES[@]} -gt 0 || Error "No files to copy (RESULT_FILES is empty)"
> -
> -Log "Copying files '${RESULT_FILES[@]}' to $NETFS_PROTO location"
> -
> -ProgressStart "Copying resulting files to $NETFS_PROTO location"
> -cp "${RESULT_FILES[@]}" "${BUILD_DIR}/netfs/${NETFS_PREFIX}/" 1>&8
> -ProgressStopIfError $? "Could not copy files to $NETFS_PROTO location"
> -echo "$VERSION_INFO" >"${BUILD_DIR}/netfs/${NETFS_PREFIX}/VERSION"
> -ProgressStopIfError $? "Could not create VERSION file on $NETFS_PROTO location"
> -cp $CONFIG_DIR/templates/RESULT_usage_$OUTPUT.txt "${BUILD_DIR}/netfs/${NETFS_PREFIX}/README" 1>&8
> -ProgressStopOrError $? "Could not copy usage file to $NETFS_PROTO location"
> -cat "$LOGFILE" >"${BUILD_DIR}/netfs/${NETFS_PREFIX}/rear.log" || Error "Could not copy $LOGFILE to $NETFS_PROTO location"
> -Log "Saved $LOGFILE as ${NETFS_PREFIX}/rear.log"
> 
> Added: trunk/usr/share/rear/output/NETFS/default/10_mount_NETFS_path.sh
> ===================================================================
> --- trunk/usr/share/rear/output/NETFS/default/10_mount_NETFS_path.sh	                        (rev 0)
> +++ trunk/usr/share/rear/output/NETFS/default/10_mount_NETFS_path.sh	2011-05-01 21:51:51 UTC (rev 420)
> @@ -0,0 +1 @@
> +link ../../../backup/NETFS/default/10_mount_NETFS_path.sh
> \ No newline at end of file
> 
> 
> Property changes on: trunk/usr/share/rear/output/NETFS/default/10_mount_NETFS_path.sh
> ___________________________________________________________________
> Added: svn:special
>    + *
> 
> Copied: trunk/usr/share/rear/output/NETFS/default/95_copy_result_files.sh (from rev 416, trunk/usr/share/rear/backup/NETFS/default/95_copy_result_files.sh)
> ===================================================================
> --- trunk/usr/share/rear/output/NETFS/default/95_copy_result_files.sh	                        (rev 0)
> +++ trunk/usr/share/rear/output/NETFS/default/95_copy_result_files.sh	2011-05-01 21:51:51 UTC (rev 420)
> @@ -0,0 +1,24 @@
> +#
> +# copy resulting files to network backup location
> +
> +# do not do this for tapes
> +if [ "$NETFS_PROTO" == "tape" -o "$NETFS_PROTO" == "obdr" ]; then
> +	return 0
> +fi
> +
> +# if called as mkbackuponly then we just don't have any result files.
> +if test ${#RESULT_FILES[@]} -eq 0 ; then
> +	return 0
> +fi
> +
> +Log "Copying files '${RESULT_FILES[@]}' to $NETFS_PROTO location"
> +
> +ProgressStart "Copying resulting files to $NETFS_PROTO location"
> +cp "${RESULT_FILES[@]}" "${BUILD_DIR}/netfs/${NETFS_PREFIX}/" 1>&8
> +ProgressStopIfError $? "Could not copy files to $NETFS_PROTO location"
> +echo "$VERSION_INFO" >"${BUILD_DIR}/netfs/${NETFS_PREFIX}/VERSION"
> +ProgressStopIfError $? "Could not create VERSION file on $NETFS_PROTO location"
> +cp $CONFIG_DIR/templates/RESULT_usage_$OUTPUT.txt "${BUILD_DIR}/netfs/${NETFS_PREFIX}/README" 1>&8
> +ProgressStopOrError $? "Could not copy usage file to $NETFS_PROTO location"
> +cat "$LOGFILE" >"${BUILD_DIR}/netfs/${NETFS_PREFIX}/rear.log" || Error "Could not copy $LOGFILE to $NETFS_PROTO location"
> +Log "Saved $LOGFILE as ${NETFS_PREFIX}/rear.log"
> 
> Added: trunk/usr/share/rear/output/NETFS/default/98_umount_NETFS_dir.sh
> ===================================================================
> --- trunk/usr/share/rear/output/NETFS/default/98_umount_NETFS_dir.sh	                        (rev 0)
> +++ trunk/usr/share/rear/output/NETFS/default/98_umount_NETFS_dir.sh	2011-05-01 21:51:51 UTC (rev 420)
> @@ -0,0 +1 @@
> +link ../../../backup/NETFS/default/98_umount_NETFS_dir.sh
> \ No newline at end of file
> 
> 
> Property changes on: trunk/usr/share/rear/output/NETFS/default/98_umount_NETFS_dir.sh
> ___________________________________________________________________
> Added: svn:special
>    + *
> 
> 
> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
> 
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network 
> management toolset available today.  Delivers lowest initial 
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Rear-users mailing list
> Rear-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rear-users




More information about the rear-users mailing list