Posté par raguetrenaud .
En réponse au message tar + split + output.
Évalué à 2.
Dernière modification le 14 juillet 2015 à 22:14.
hello, thanks,
it said split, too many arguments.
i found a workaround (not clean but working…):
i inserted tags (tar start and tar end)in my log file and i used /bin/sed to extract the tar command from it.
#extract tar logs from backup.log to backuped_files.lst
sed -n '/^tar start/,/^tar end/p' backup.log > backuped_files.lst
#remove tar logs from backup.log
sed '/^tar start/,/^tar end/d' backup.log > backup.log
[^] # Re: You can't
Posté par raguetrenaud . En réponse au message tar + split + output. Évalué à 1.
the last command didn't work.
i used:
/bin/sed -i".bak" '/tar start/,/tar end/d' /usr/backup/backup.log
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
Regards,
Renaud
[^] # Re: You can't
Posté par raguetrenaud . En réponse au message tar + split + output. Évalué à 2. Dernière modification le 14 juillet 2015 à 22:14.
hello, thanks,
it said split, too many arguments.
i found a workaround (not clean but working…):
i inserted tags (tar start and tar end)in my log file and i used /bin/sed to extract the tar command from it.
Regards,
Renaud
[^] # Re: stderr
Posté par raguetrenaud . En réponse au message tar + split + output. Évalué à 1.
thanks but my tar version doesn't have this option :(
[^] # Re: stderr
Posté par raguetrenaud . En réponse au message tar + split + output. Évalué à 1.
hello,thanks,
sorry, i don't want errors..
my mistake
i'd like to log the backuped files so the "screen" output without errors