Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

tar delete

## Use --remove-files NOT --delete to erase the source files
tar -cf tarball-name.tar /path/to/save --remove-files
## Usee && to only process rmdir if tar exits without errors
tar -cf tarball-name.tar /path/to/save --remove-files && rmdir /path/to/save
Source by linux.die.net #
 
PREVIOUS NEXT
Tagged: #tar #delete
ADD COMMENT
Topic
Name
2+1 =