Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 17 Sep 2014, 15:45
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
[solved] autosyncr. on shut down
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
der-schutzhund

Joined: 26 Nov 2007
Posts: 781
Location: Blomberg / Germany

PostPosted: 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
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: 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 Razz
Back to top
View user's profile Send private message Visit poster's website 
der-schutzhund

Joined: 26 Nov 2007
Posts: 781
Location: Blomberg / Germany

PostPosted: 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
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: 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 Smile

_________________
«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 Razz
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

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.0625s ][ Queries: 11 (0.0183s) ][ GZIP on ]