Using rsync: rsync -avP --numeric-ids --exclude='/dev' --exclude='/proc' --exclude='/sys' root@targethost:/ /path/to/destination/
Using tar: tar cf - files... | ssh remotehost -c 'cd /destination && tar xvf -'
or: ssh remotehost -c 'cd /destination && tar cf - files' | tar xvf -