Skip to content

tar backup exclude dir  #103

@a323870

Description

@a323870

Tar img non include dir /proc /lost+found /sys /dev /tmp /boot /run

I solved append /* at the end of --exclude

cmd="tar \
	$TAR_BACKUP_OPTIONS \
	$TAR_BACKUP_ADDITIONAL_OPTIONS \
	${zip} \
	${verbose} \
	-f $target \
	--warning=no-xdev \
	--numeric-owner \
	--exclude=\"$BACKUPPATH_PARAMETER/*\" \
	--exclude=\"$source/$log_file\" \
	--exclude='.gvfs' \
	--exclude=$devroot/proc/* \
	--exclude=$devroot/lost+found/* \
	--exclude=$devroot/sys/* \
	--exclude=$devroot/dev/* \
	--exclude=$devroot/tmp/* \
	--exclude=$devroot/boot/* \
	--exclude=$devroot/run/* \
	$EXCLUDE_LIST \
	$source"

Metadata

Metadata

Assignees

Labels

bugIssue accepted as a bug

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions