On 4/4/20 1:03 PM, [email protected] wrote: > Of course, leave off the $ when defining a variable in Bash! > > I'm using the following tar invocation: > > tar --one-file-system -cvjf foo.tar.bz2 foo/ > > Is there a way to tar up symbolic links as links? > > What about permissions?
#!/bin/bash dump_dir="/home/Shared/backup/" ... mkdir -p $dump_dir # -p creates parent directories if needed ... tar --one-file-system -cpvjf foo.tar.bz2 foo/ ... Omitting -h should backup any symlinks and not just the files they point to. Just remember to add -h when you extract to restore the symlinks. -p preserves perms (default if superuser) --keep-directory-symlink if you have symlinks to directories. (see man tar) > > Should I run this as root in runlevel 1? > Why? running as user is fine or use su or sudo. Your user just needs access to the source and target directories. > > Instead of starting over, could I uninstall X Windows from the existing > system in console mode for troubleshooting? > I think with X gone that network manager will go too which may be the source > of my networking problems. if you don't need X apps etc, and just use the console, dump it. Removing X won't remove usually Network Manager as NM has a CLI component. Of course, that depends on the dependency list for NM and X for your distro package manager. -Ed
signature.asc
Description: OpenPGP digital signature
_______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
