On 22/10/14 08:00 AM, users-requ...@lists.fedoraproject.org wrote:
Message: 2 Date: Wed, 22 Oct 2014 19:23:40 +0800 From: Ed Greshko
>On 10/22/2014 11:41 AM, Angelo Moreschini wrote:
>>I would like to know how to start this command (after it is inside a shell
>>script) at the boot.
>Did you try /etc/rc.local?
For the most recent versions of Fedora that has changed.
It is now, /etc/rc.d/rc.local*And* that file must be set executable.
This is noted in /lib/systemd/system/rc-local.service
I found that rc-local.service was not run consistently.
Create a crontab *as root* and use the @reboot command for cron.
ie a line like '@reboot /usr/local/sbin/my-startup-backup.sh
Regarding this:
rsync -av --delete /home/programmers/Labels/*.java /media/saved_lab
rsync -avr --delete /home/programmers/Labels/*.java /media/saved_lab
The message that I get is :
sending incremental file list
rsync: link_stat
"/home/programmers/java/PROJECTS_development/Labels/*.java" failed: No
such file or directory
There is something very wrong here. I suspect that you have edited the
command lines in your example, since rsync should only be looking in and
below /home/programmers/Labels and NOT in /home/programners/java
As noted in the link posted, you should look at rsync's --include and
--exclude files.
Although if this is a backup situation, maybe the -u (--update) switch
is what you really need. Using '-au' will find all files which have been
updated relative to the destination version. (And you may then want to
use --delete-after.).
--
R. Geoffrey Newbury
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org