forked from linux/documentation
document copy and download feature of partial shared home
This commit is contained in:
1 parent
ace7bf3164
commit
806a3650b3
2 files changed
+25
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# Partially Shared Home - Automatically Link Files in Home - Admin Guide
|
||||
# Partially Shared Home - Automatically Link or Copy Files in Home - Admin Guide
|
||||
|
||||
Shared homes create a set of problems depending on how much a software can handle running multiple instances of the same software, maybe with different version, on different hosts, probably at the same time.
|
||||
Still it is useful to have certain tool settings always with you.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Personal Drive - Automatically Link Files in Local Home
|
||||
# Personal Drive - Automatically Link or Copy Files in Local Home
|
||||
|
||||
Shared homes create a set of problems depending on how much a software can handle running multiple instances of the same software, maybe with different version, on different hosts, probably at the same time.
|
||||
Still it is useful to have certain tool settings always with you.
|
||||
@@ -31,17 +31,38 @@ link:
|
||||
to: 'network_drives/home/linux_config/bashrc.d'
|
||||
|
||||
# following does not work as usually a ~/.bashrc is installed automatically from /etc/skel
|
||||
#
|
||||
# '.bashrc':
|
||||
# to 'network_drives/home/linux_config/bashrc'
|
||||
#
|
||||
# so better use the copy feature
|
||||
copy:
|
||||
'.bashrc':
|
||||
from: 'network_drives/home/linux_config/bashrc'
|
||||
|
||||
download:
|
||||
# or you have something in git to download using a token
|
||||
'.config/tool.config':
|
||||
from: 'https://3456...3342@gitea.psi.ch/muster_t/linux_config/tool.config'
|
||||
|
||||
|
||||
# any other file or directory to show up
|
||||
```
|
||||
(if you have more use cases to add, please contact the [Linux Core Group](mailto:linux-eng@psi.ch))
|
||||
|
||||
Note that if the intended symlink location already exists (e.g `.ssh`), then it will keep the file or directory.
|
||||
But an alredy exiting symlink will be updated.
|
||||
|
||||
If you beleave not everything is linked properly or to check if everything is fine, have a look at your log:
|
||||
The copy and download feature will always overwrite an existing file. And you only can configure individual files with those.
|
||||
|
||||
The link feature has the advantage that changes are immedately also reflected on all the other systems.
|
||||
But it depends on stable network connectivity which you may not always have, e.g. with a laptop.
|
||||
|
||||
When using the copy or download feature then network connectivity only needs to be available initially and on the first connect after the source file has been changed.
|
||||
You need also to be aware that changes on the local destination files do not propagate automatically to other systems and get reset somewhen in the future.
|
||||
So you need to do these changes always also on the source file on the U: drive or in the download source.
|
||||
|
||||
|
||||
If you beleave not everything is linked or copied properly or to check if everything is fine, have a look at your log:
|
||||
|
||||
```
|
||||
$ journalctl -S today
|
||||
|
||||
Reference in new issue
Block a user