ACC SHELL

Path : /usr/share/YaST2/modules/
File Upload :
Current File : //usr/share/YaST2/modules/Restore.ybc

YaST bytecode 1.4.0RestorePRestore.ycpProgressReportModeSummaryServicePackageLabelPopup	URL
MessageStringfilename	
	inputname	completerestorationinputvolumes	archivefiles	
installedpkgs		actualinstalledpackages		complete_backup	archive_info		
autoinst_info	date	hostname	comment	volumeparts	tempdir	targetDirectory	
mountpoint	nopackage_id	
runbootloader
runSuSEconfig restoreRPMdb!config_modified"Modified#SetModified$
IsMultiVolume%GetArchiveDate	&GetInputName	'GetArchiveName	(GetArchiveComment	)GetArchiveHostname	*GetArchiveInstalledPackages		+GetArchiveFiles,ReadActualInstalledPackages		-GetActualInstalledPackages		.GetMissingPackages			/GetExtraPackages			0GetMismatchedPackages			1GetSelectedPackages	2ClearInstalledPackagesCache3Umount4mountNFS		5mountCD6mountFloppy7mountDevice	8
MountInput	9CheckVolume	:
CopyVolume	;	AddVolume	<SetRestoreSelection	=SetSelectionProperty	>Read	?Set@ImportAExportBGetArchiveInfo		CTotalPackagesToRestoreDTotalFilesToRestoreEActivateBootloaderFWrite
	GReadNextVolume	HTestAllVolumesIResetArchiveSelectionJResetAllKRemoveShortCut		Lyesno	MSummary	NProposeRPMdbRestoration	O
RPMrestorable+

+-O[`  e""n##r$$z%%&&''(())**++,,--..//00511R22m33v88input	<<pkgname		selection==*settings	>>@input	??Rsettings@@tsettingsAABBCCDDEEFFabortprogress
	targetdir	GGinput	HHII)JJGMMpNNOO!T3UIChangeWidget

3PkgSourceStartCache
TargetInit	GetPackages	

PkgSummary		
PkgInstall	PkgSolve	PkgCommit3WFMcall	3SCRReadExecute3Progressoffon3ReportError	3Modeconfigtest3Summary
NotConfigured	3ServiceStatus	Start	3Package	DoInstall	3LabelContinueButton	3 PopupContinueCancel	3!URLParse	3"MessageUnableToCreateDirectory		3#StringQuote		0%restore$($+
$-$0	$3	$6
$9
$;	$?
$A
$D$E$F$I	$L$O/$R$V_NoPackage_$[$`$e $h!%n"-o!%r#&s!%z$-{size%%-%&-
%'-%(-%)-%*-%+-%,info	ret		(4-
,/$	installed,	
y2debug	
ReadActualInstalledPackages: %1		sort$
,		foreachpkg	all	$			splitstring			 &						addunknown	+			+				-	-%-(||
4&,-%.r		ret				$
,-&						filterp	v	haskey,	
y2debug	
actualinstalledpackages: %1,	
y2debug	
GetMissingPackages r: %1$										mapmappkg	version	descr	$(4-ver4-verdescr&									filterpkg	inf		
gpg-pubkey,	
y2debug	
GetMissingPackages ret: %1-
%/r		ret			$
,-&						filterp	v	haskey$ 										mapmappkg	version	descr	$!(#4$-%ver4(-)verdescr-.%50ret			$6
,8-,:				foreachp	v	(;haskey4<
backupversion	$=	(?4@descr	$A&C									addverinstdescr									addverinst-J%R1ret	$S
(U4V&X			filterp	infosel_type	$Y	sel_type ([||XP4\-]4`-a-g%m2&o%v3(w&&4x,y	
y2milestone	
Umount called - unmounting %1,zSCR::Execute.target.umount&{%4server	file	pos$		
findlastof		/(4dir	f	tmpdir	mpoint	result$			substring		$			substring		+$		SCR::Read.target.tmpdir$+			/nfs(||4&/,SCR::Execute
.target.mkdir,	
y2milestone	
dir: %1,	
y2milestone	
file: %1,	
y2milestone	

mpoint: %1$SCR::Execute
.target.mount+			+			:-t nfs -o ro-mounted
mountpointfile
server_dir-
mounted%5cdindexdrivescddevice	tmpdir	mpoint	result$	SCR::Read.probe.cdrom(||-size4-
mounted$	dev_name
/dev/cdrom$		SCR::Read.target.tmpdir$+			/cd,SCR::Execute
.target.mkdir$SCR::Execute
.target.mount-o ro-mountedmpoint%6fdindexdrivesfddevice	tmpdir	mpoint	result$	SCR::Read
.probe.floppy(||-size4-
mounted$	dev_name/dev/fd0$		SCR::Read.target.tmpdir$+			/fd,SCR::Execute
.target.mkdir$SCR::Execute
.target.mount-o ro-mountedmpoint%7device	tmpdir	mpoint	result(||4-
mounted$		SCR::Read.target.tmpdir$+			/mount,SCR::Execute
.target.mkdir$SCR::Execute
.target.mount-o ro-mountedmpoint%8
successmpoint	file		nfsprefix	
fileprefix		devprefix	cdprefix	fdprefix	
parsed_url	scheme	
,	
y2milestone	
MountInput(%1)$$$$nfs://$file://$dev://$cd$fd$	
$
		schemefile(	nfs4

nfs_server	nfs_file	resultportmapper_statusmountresult$	host$	path$SCR::Execute.target.bash/bin/rpm -q portmap,	
y2milestone	
check result: rpm: %1(4,	
y2milestone	
#portmapper package is not installed,
	portmap$	portmap,	
y2milestone	
portmap status: %1(!4"started$$	portmap,%	
y2milestone	
portmap start result: %1,(	
y2milestone	
!NFS source - server: %1  file: %2$*4(,mounted4-,.	
y2error	
*Cannot read source '%1' - NFS mount failed41&2	
mountpoint&3+			+			/	file&4,6	
y2milestone	

mpoint: %1,7	
y2milestone	
file: %1(:	dev4;device	devfile	mountresult$<	host$=	path,?	
y2milestone	
$Device source - device: %1  file: %2$A7(Cmounted4D,E	
y2error	
-Cannot read source '%1' - device mount failed4H&I	mpoint&J+			+			/&K(N	file4O&P			substring			size	,Q	
y2milestone	
FILE source: %1&S(U		regexpmatch				^cd[0-9]*4Vcdindex	cdfile	mountresult$X					regexpsub					
^cd0*([0-9]*)\1$Y	path([||4\&]0(`4a&b,e	
y2milestone	
CD source - drive: %1  file: %2$h5	tointeger(jmounted4k,l	
y2error	
&Cannot read source '%1' - mount failed4o&p	mpoint&q+			+			/&r(u		regexpmatch				^fd[0-9]*4vfdindex	fdfile	mountresult$x					regexpsub					fd0*([0-9]*)://(.*)\1$y	path({||4|&}0(4&,	
y2milestone	
#Floppy source - drive: %1  file: %2$6	tointeger(mounted4,	
y2error	
&Cannot read source '%1' - mount failed4&	mpoint&+			+			/&4,	
y2error	
Unknown prefix in input: %1-successmpointfile%9filename	numsuccess
lastvolumedetailresultstdout		firstline	$$$SCR::Execute.target.bash_output+			/bin/tar -v -t -f $			splitstring				stdout
$	,	
y2debug	
Test: First line: %1(		regexpmatch				
sformat		
+V--------- .* YaST2 backup: Volume %1--.*--4&-success
lastvolumeexit%:filename	numsuccesstmpfile	exit$$+			+			+			/		
sformat		
%1.tar$SCR::Execute.target.bash+			+			+			/bin/cp  (4&4,	
y2error	
Copy failed-successfile%;file	volsuccesscheck$+size$$9,	
y2debug	
CheckVolume(%1, %2): %3(success4copy$:,	
y2debug	
CopyVolume(%1, %2): %3(success4partname	$	file&			add&-success
lastvolume
lastvolume%<(4&(haskey4,	
	y2warning	
1Package %1 is not in archive, cannot be restored!4
sel_type	sel_filepkginfo	$	sel_type $	$

	(4&
(P4&sel_file	(&&X 4,	
	y2warning	
,Unknown selection type '%1' for package '%2'&			addsel_type&			addsel_file& 						add%*=,,		foreachpackage	info,-	
y2debug	
,setting selection: package:%1, selection:%2)(/40&1,4<%@>	mresultresultcompressed_packages_info	infofiles	complete_backup_str		archivefs	installedpkgs_str	installedpkgs_list	
mismatched			3,C3(E4F&G		SCR::Read.target.tmpdir&J
(L4M
&N/tmp/dummy.tar&P	info/	info/dateinfo/comment
info/filesinfo/packages_infoinfo/installed_packages
info/hostnameNOPACKAGE-20020509-0.tar.gz!kdebase3-3.0-19-20020509-0.tar.gz lprng-3.8.5-49-20020509-0.tar.gz"mozilla-0.9.8-54-20020509-0.tar.gz$netcfg-2002.3.20-0-20020509-0.tar.gz&U13.01.2002 14:25&V
Some comments&Wlinux.local&Y

gnome-applets
1.4.0.5-98kdebase33.0-19lprng3.8.5-49mozilla0.9.8-54netcfg2002.3.20-0&Z
aterm0.4.0ggv
1.1.93-167kdebase33.0-19lprng3.8.5-49netcfg2002.3.20-0&\

descrFiles not owned by any packagefiles/.qt//dev/dvd
/dev/cdromsel_typeXkdebase3
descrKDE base package: base systemfiles$/etc/opt/kde3/share/config/kdm/kdmrcprefixsel_typeXvers3.0-19lprng
descrLPRng Print Spoolerfiles/etc/init.d/lpdprefixsel_typeXvers3.8.5-49mozilla
descrOpen Source WWW browserfiles(/opt/mozilla/chrome/installed-chrome.txtprefixsel_typeXvers0.9.8-54netcfg
descr#Network configuration files in /etcfiles
/etc/HOSTNAME/etc/defaultdomain/etc/exports
/etc/hostsprefixsel_typeXvers2002.3.20-0&d								mapmapp	i	&e			addsel_typeXhaskeyX -g-k$o8,q	
y2debug	
MountInput: %1(ssuccess4t,vCannot mount file system.restore-w&z	file&{	mpoint,}	
y2milestone	
filename: %1,~	
y2milestone	
mountpoint: %1$SCR::Execute.target.bash_output+			/bin/tar -t -f (exit4	addresult&	$;(success4&	4,CCannot read archive file.
It is not a tar archive or it is broken.
restore-4(&&			substring			size	file://file://			substring			size	nfs://nfs://4copy$:(success4&	file,34,1Cannot copy archive file
to temporary directory.
restore-&			splitstring				stdout
&			filterf	&&$		containsinfo/packages_info.gz,	
y2milestone	
compressed_packages_info: %1(!&&&&		contains
info/files||		containsinfo/packages_info		containsinfo/packages_info.gz		containsinfo/installed_packages4,	
y2error	
`Archive does not contain 'info/files' or 'info/packages_info' or 'info/installed_packages' file!,cThe archive does not contain the required files.
It was probably not created by the backup module.
restore-,	
y2debug	
read archivefiles: %1$]info/comment info/hostname info/date info/installed_packages info/files info/complete_backup &+			info/packages_info.gzinfo/packages_info&SCR::Execute.target.bash_output+			+			+			+			+			+			
/bin/tar -C '' -x -f  
 2> /dev/null&		SCR::Read.target.string+			
/info/date&		SCR::Read.target.string+			
/info/comment&		SCR::Read.target.string+			/info/hostname$	SCR::Read.target.size+			/info/complete_backup		SCR::Read.target.string+			/info/complete_backup,	
y2debug	
complete_backup_str: %1&			splitstring			
,	
y2milestone	
Complete backup: %1$		SCR::Read.target.string+			/info/files(4&			splitstring			
&			filterpk	&&,	
y2debug	
final archivefiles: %1$		SCR::Read.target.string+			/info/installed_packages$			splitstring			
&			filterpk	&&&
,		foreachfullname	version	name	$					regexpsub				
.*-(.*-.*)\1$			substring		--	size		size	&						add(4,	
y2milestone	
Unpacking packages_info.gz file,SCR::Execute.target.bash+			+			+			+			/usr/bin/gunzip -c /info/packages_info.gz > /info/packages_info,	
y2milestone	

File unpacked,	
y2milestone	
Converting package info,SCR::Execute.target.bash+			+			+			+			./usr/lib/YaST2/bin/restore_parse_pkginfo.pl < /info/packages_info > 	/info.ycp,	
y2milestone	
Reading package info&			SCR::Read.target.ycp+				/info.ycp,		
y2milestone	
Read %1 packagessize,
-$0&								mapmapp	i	descr	t	sel_type	$Files not owned by any packagerestore(4&
(4&$ 			adddescr$" ($4%('4(&*X4-&.&&haskey!haskeyX 42&4	sel_type &7			addsel_type-9(=4>,@	
y2debug	
Setting selection: %1,A=,D	
y2milestone	
5values from archive: date=%1, comment=%2, hostname=%3,F	
y2debug	
%installed packages at backup time: %1,G	
y2debug	
actual installed packages: %1--I%R?archiveslist	,S	
y2milestone	
Using settings: %1&T
runbootloader&U
runSuSEconfig&V restoreRPMdb&Wcompleterestoration$Yarchives	&Z
	(\size4]&_
&`
,d=	selection
&h	selection
,i	
y2debug	
setting autoinst_info: %1,k	
y2debug	
archive_info: %1%t@(u4v-w,z?-|%A	selection$
(
4-
,		foreachpackage	infosel_type	sel_file$	sel_type $sel_file	(4&&addsel_typesel_file-archives			prepend

runbootloader
runSuSEconfigrestoreRPMdb completerestoration	selection%B-%Ctotal$,		foreachp	infosel_type	$	sel_type (||XP4&+-%Dtotal$,		foreachp	infosel_type	$	sel_type (X4&+sizefiles	(P4&+sizesel_file	-%Eret$,(&&4,	
y2milestone	
$activating boot loader configuration&		WFM::call	restore_bootloader(4,!Boot loader configuration failed.restore,	
y2milestone	
boot loader activated: %1,-%Frestore	totalrestoredpackages
restoredfiles	failedfiles	abortedoutpackages	i	ret

bootload$$	$
$	$	$
(||	size				substring		/4,		
sformat		
Invalid target directory (%1).restore-abortedrestoredfailedpackages
bootloader$SCR::Execute.target.bash+			/bin/mkdir -p (4,&			filterp	infosel_type	$ 	sel_type ("&"X($X4%&&+sizefiles	-'()P4*&++sizesel_file	-,4/-0,5	
y2milestone	
&%1 files will be restored from archive$7	,8		foreachpackage	info&9			add$=$>	next(@ 4Arpm_backup_script	stat	$B$/etc/cron.daily/suse.de-backup-rpmdb(D	SCR::Read.target.size4Eresult,F	
y2milestone	
 Startting RPM backup script (%1)$GSCR::Execute.target.bash,H	
y2milestone	
RPM backup exit value: %14K,L	
	y2warning	
>RPM DB backup script (%1) was not found, DB was not backed up!$O	sel_type ,P	
	y2warning	
NOPACKAGE status: '%1',Q	
	y2warning	
NOPACKAGE files: '%1'files	(S|| P4TRPM	$X	,[		foreachf	files	(\		regexpmatch		^/var/lib/rpm/4]&^			add,c	
	y2warning	
found RPM DB files: %1(e 4fin$g		eval
	'isel_typeP'jsel_file'meval&o+size4ralready_selected	in$usel_file	,w		foreachrpm_file	(x!		contains4y&z			add&{+$		eval
	'sel_file'eval,	
	y2warning	
packages: %1)size4package	infolabel	sel_type	$nonexistingpackage	$
$+Restoring files not owned by any package...restore		
sformat		
Restoring package %1...restore$	sel_type(4,idLabel,idValue(4,sleep,4name	
fileinarchive	locale_modifications	(&&/4copy$SCR::Execute.target.bash2cp -r /var/log/YaST2 /var/log/YaST2.before_restore,	
y2milestone	
4copy y2logs to /var/log/YaST2.before_restore: ret=%1$	NOPACKAGE+			+			-	vers$,		foreachf	(		regexpmatch		+			+			^-........-.\.s{0,1}tar.*4,	
y2debug	
 package %1 is in archive file %2&$(4,	
y2error	
$Can't find subarchive for package %14	startedcompress	starRPMdb	unpackfiles	
tarcommand	stdout	stderr	packagefailedfiles$($4param	command	$ ,		foreachf	&+			+			+			-f  $+			+			+			+			+			+			echo q | /bin/tar -C  -x -M 
 2> /dev/null,	
y2milestone	
Running command: %1&SCR::Execute.background.run4command	$+			+			+			+			+			+			/bin/tar -C  -x -f  ,	
y2milestone	
Running command: %1&SCR::Execute.background.run)	SCR::Read.background.isrunning4,sleepd&eval(4,	
	y2warning	
Restoration aborted!,SCR::Execute.background.kill.(4.$$(		regexpmatch		.*\.tar\.gz$4&-z(		regexpmatch		
.*\.tar\.bz2$4&-j(||||		regexpmatch			.*\.star$		regexpmatch		
.*\.star\.gz$		regexpmatch		.*\.star\.bz2$4&&,	
y2debug	
compress: %1,		
y2debug	
star: %1,
	
y2debug	
fileinarchive: %1$ -not pat=var/lib/rpm--exclude var/lib/rpm$(P4,		foreachf	sel_file	(	size	4(			substring		/&			substring		&+			+			+			 ''$%+			+			+			+			+			+			+			+			+			+			+			+			+			+			+			+			+			/bin/tar -C  
 -x -v -f /   2> /tar.stderr > /tar.stdout+			+			+			+			+			+			+			+			+			+			+			+			+			+			+			+			+			/usr/bin/star -C  
 -x -v -U -f /   2> /tar.stderr > /tar.stdout,/	
y2milestone	
tarcommand: %1(2&&	SCR::Read.target.size
/usr/bin/star43cont	inst$5&6			mergestring						splitstring			&$:		
sformat		
\Package star is needed to extract
files from the archive.
Press %1 to install this package.
restore(?4@okresult,D,E/$G&Jstar&M&&$P,S	
y2debug	

PkgCommit: %1&T&&&&		(X4Y,[1Package star is not installed.
Press OK to exit.
restore,^	
y2error	
(star package wasn't installed - aborting-`abortedrestoredfailedpackages
bootloader&fSCR::Execute.background.run_output,h	
y2milestone	
Tar command started: %1)j	SCR::Read.background.isrunning4k,lsleepd&neval(p4q,r	
	y2warning	
Restoration aborted!,sSCR::Execute.background.kill.t$y			splitstring					SCR::Read.target.string+			/tar.stdout
(|4}&~			filterline		size	(&&4filteredstdout	$	,		foreachline	new	$					regexpsub				x (.*) .* bytes, .* tape blocks\1(4&			add&,	
y2debug	

stdout: %1(4&	merge$			splitstring					SCR::Read.target.string+			/tar.stderr
&			filterline		size	$(	4,	
	y2warning	

stderr: %1,		foreachline	,	
	y2warning	
line: %1(&&4file	$					regexpsub				s{0,1}tar: (.*)\1(&&&&!		regexpmatch		9star: .* blocks \+ .* bytes \(total of .* bytes = .*k\)\.!		regexpmatch		star: WARNING: .*4&			add&+,	
	y2warning	
Restoration of file %1 failed(&&size4,	
	y2warning	
failed package: %14&+(4.&+&		toset&			filterf	!		contains(&&4,idLabelConfiguring boot loader...restore,idValue$
E-abortedrestoredfailedpackages
bootloader
%Gretlastmount,3$$$8(success4addvol&	mpoint$;	filedummy&success&
lastvolume(4&			add-success
lastvolume%Hret$(size4param	exit$,		foreachf	&+			+			+			-f  $SCR::Execute.target.bash+			echo q | /bin/tar -t -M ,	
y2milestone	
Test result: %1&-"%)I
&+&,
&/	&2
&5
&8&9&:&=	,?3%GJ,HI&K
%SKscut	-T			mergestring						splitstring			&%\Lbret	$]?(_4`&aYesrestore(c4d&eNorestore-h%pM(q
4r-t4w
archives_info	options_info	selection_info	
$y+			+			<P><B>Backup Archiverestore<B></P>&{+			+			<P>
,|		foreachvol	&}+			+			<BR>&+			</P>$+			+			<P><B>Restore Optionsrestore<B></P>&+			+			+			+			+			+			+			+			+			+			+			+			+			<P>K5Activate &boot loader configuration after restorationrestore:  L<BR>K!Run &SuSEconfig after restorationrestore:  L<BR>K-Restore RPM &database (if present in archive)restore:  L <BR></P>$+			+			<P><B>Packages to Restorerestore</B></P><P>(4&+			)<I>Restore all files from the archive</I>restore(4,		foreachp	info(4&--No package--restore(	sel_type  4&+			+			<BR>&+			</P>-+			+			%N
extra	missing	
mismatched			selected	propose
selected_listokdifferent_versions		
not_in_system	not_in_archiveDB$/$.$0$1$,	
y2debug	
extra: %1, missig: %2$	,		foreachp	in&add+			+			-	vers,	
y2debug	
selected_list: %1(size4all$,	
y2debug	
size(extra): %1size,		foreachfullpkg	(!contains4&,	
y2debug	
$all completely packages selected: %1(4,		foreachpkg	inffpkg	$+			+			-	vers(!		contains4&(4,	
y2debug	
)only fully backed up packages are missing-
proposed$,		foreachpk	infversion	$	vers(&&||		4&(4-
proposed$
$	$		,						foreachp	inf		(	4
'+			+			-inst	,		foreachp	inf&add+			+			-	vers,		foreachp	inf&	add	+			+			-	vers-proposed
mismatchedmissingextra%!O
nopkgfiles$"files	-#contains/var/lib/rpm/Packages

ACC SHELL 2018