The time now is Sat 25 May 2013, 14:27
All times are UTC - 4 |
| Author |
Message |
der-schutzhund
Joined: 26 Nov 2007 Posts: 730 Location: Blomberg / Germany
|
Posted: Tue 19 Feb 2013, 17:11 Post subject:
[solved] autosyncr. on shut down Subject description: need Help |
|
Hi,
I want to make an automatic synchronization.
Whenever a computer is shut down, he should look at the directory of another computer for new files. Are there any newer files will be copied to the root directory. This "central PC" shut be mountet automatic.
The "central PC" can be either a Windows or Puppy. That does not matter, and depends on what is easier to program.
On Windows I can build with Pnethood by hand a network connection. Under Puppy I get the point not. The entire process would have to proceed with a script.
I have. 20 PCs in use in school so I could get with very little effort adjustments and changes to Puppy all PCs of students to its current level.
Greetings
Wolfgang
-----------------------------------------------------
In Lazy you can insert this line in "shutdown-pc" to mount
| Code: | mkdir /mnt/update
mount-FULL -t cifs //192.168.111.101/linuxtest /mnt/update -o username=XXX,password=XXX |
Then copy vom /mnt/update to any directorie.
Greetings
Wolfgang
Last edited by der-schutzhund on Mon 25 Feb 2013, 13:30; edited 1 time in total
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2686 Location: Kiel,Germany
|
Posted: Mon 25 Feb 2013, 11:12 Post subject:
|
|
i have code like that in rc.shutdown to source a private file to mount and unmount things , create backups and other not really needed stuff since stable hardware on journaling filesystems don't do wrong if there is a hard power-off :
| Code: | | [ -r /etc/rc.d/rc.shutdown.local ] && . /etc/rc.d/rc.shutdown.local |
_________________ «Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal 
|
|
Back to top
|
|
 |
der-schutzhund
Joined: 26 Nov 2007 Posts: 730 Location: Blomberg / Germany
|
Posted: Mon 25 Feb 2013, 12:13 Post subject:
|
|
Hallo Karl Godt,
inzwischen habe ich das Problem schon gelöst aber bei dir finde ich keinen Befehl um einen externen LAN-PC zu mounten.
Du wolltest nur zeigen an welcher Stelle man beim shutdown ein zusätzliches "mountscript" starten kann?
LG
Wolfgang
| Karl Godt wrote: | i have code like that in rc.shutdown to source a private file to mount and unmount things , create backups and other not really needed stuff since stable hardware on journaling filesystems don't do wrong if there is a hard power-off :
| Code: | | [ -r /etc/rc.d/rc.shutdown.local ] && . /etc/rc.d/rc.shutdown.local |
|
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2686 Location: Kiel,Germany
|
Posted: Mon 25 Feb 2013, 12:26 Post subject:
|
|
I only have broadband and no router and such -- and yes i wanted to show where to add code for a second sutdown script . Don't know much 'bout cifs either , but searching for cifs shows 6x30 hits on this forum . Since i am compiling my kernels i am interested in file system also .
Shutdown hang when CIFS shares are mounted and potential fix
http://murga-linux.com/puppy/viewtopic.php?search_id=2028892882&t=7312
HiDrive mount (From Strato)
http://murga-linux.com/puppy/viewtopic.php?search_id=2028892882&t=73745
fstab mounting is borked in v5.25
http://murga-linux.com/puppy/viewtopic.php?search_id=2028892882&t=69069
I am glad you found a stable OS for your purposes
_________________ «Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal 
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0482s ][ Queries: 11 (0.0099s) ][ GZIP on ] |