Hi,
I'm using tar to backup my non-ios-phone onto my mac and am facing an issue with --exclude function. I enter the following line in term:
I also tried with "/" at the begining like this:
But --exclude is never taken into account and I always end up with a "short read" when "/sys" tries to tar (which is normal I assume).
Could somebody help find the right sentence please ? Thx
I'm using tar to backup my non-ios-phone onto my mac and am facing an issue with --exclude function. I enter the following line in term:
Code:
ssh developer@192.168.2.15 "tar -cvzp --exclude='/proc' --exclude='/lost+found' --exclude='/sys' --exclude='/mnt' --exclude='/media' --exclude='/dev' /" | cat > /local/path/backup.tar.gz
I also tried with "/" at the begining like this:
Code:
ssh developer@192.168.2.15 "tar -cvzp / --exclude='/proc' --exclude='/lost+found' --exclude='/sys' --exclude='/mnt' --exclude='/media' --exclude='/dev'" | cat > /local/path/backup.tar.gz
But --exclude is never taken into account and I always end up with a "short read" when "/sys" tries to tar (which is normal I assume).
Could somebody help find the right sentence please ? Thx