Re: selecting some kind of files using the resync command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 22/10/14 08:00 AM, users-request@xxxxxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxxx
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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux