This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
virtualisation:file-server [2018/03/01 08:20] buettner |
virtualisation:file-server [2018/03/01 08:28] buettner |
||
---|---|---|---|
Line 356: | Line 356: | ||
</konsole> | </konsole> | ||
- | In the second example, all files in the container will be replaced by the files stored on the USB stick. With this, you get an one-to-one copy of your USB stick: | + | In the second example, all files in the container will be replaced by the files stored on the USB stick. You will get an one-to-one copy of your USB stick: |
<konsole> | <konsole> | ||
rsync -arv --delete /mnt/media/autorun/Video-trans/ /mnt/storage1/lxc/guest1/home/Media/Videos | rsync -arv --delete /mnt/media/autorun/Video-trans/ /mnt/storage1/lxc/guest1/home/Media/Videos | ||
Line 363: | Line 363: | ||
</konsole> | </konsole> | ||
- | Now format an USB stick to the FAT16 oder FAT32 file format. Copy the "autorun.key" file together with the "autorun.sh" file and the files/folders you want to transfer to your file server on it. | + | Now format an USB stick to the FAT16 oder FAT32 file format. Copy to it the "autorun.key" file together with the "autorun.sh" file and the files/folders you want to transfer. |
- | {{ :virtualisation:usb_3.png?nolink&600 |}} | + | <konsole> |
+ | /mnt/media/autorun $ ls -lh | ||
+ | drw-r--r-- 2 root root 8.0K Feb 1 10:46 Audio-trans | ||
+ | drw-r--r-- 2 root root 8.0K Feb 1 10:47 Bilder-trans | ||
+ | drw-r--r-- 2 root root 8.0K Feb 1 13:25 System Volume Information | ||
+ | drw-r--r-- 2 root root 8.0K Feb 1 16:46 Video-trans | ||
+ | -rw-r--r-- 1 root root 65 Feb 1 11:21 autorun.key | ||
+ | -rw-r--r-- 1 root root 286 Feb 1 16:44 autorun.sh | ||
+ | |||
+ | </konsole> | ||
If you now plug in the stick into the router, the stick is mounted to the file system and all tasks from the "autrorun.sh" file are run. | If you now plug in the stick into the router, the stick is mounted to the file system and all tasks from the "autrorun.sh" file are run. | ||