jyhm
Ultra Geek
Hello,
I am tring to back up my files using tar, at the same time piping verbose output to an external log file using this code,..
All I get is an empty document using the above code. However, the code below will output just fine,..
I am tring to back up my files using tar, at the same time piping verbose output to an external log file using this code,..
Code:
tar -cvzf backup_file.tar.gz /Users/jyhm | tee /Users/jyhm/backup.log
#or
tar -cvzf backup_file.tar.gz /Users/jyhm > /Users/jyhm/backup.log
All I get is an empty document using the above code. However, the code below will output just fine,..
Code:
ls -al /Users/jyhm | tee /Users/jyhm/list.log