02-26-2019
Quote:
Originally Posted by
drew77
Does it work with wildcards?
--include="[0-2]*"
--- Post updated at 13:20 ---
There is only a pitfall.
/media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/*
if there is an asterisk in the directory name, then the shell makes substitutions itself and only then sends to the "rsync" command
In your case, the asterisk is not required
but a trailing slash is necessary!
/media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/
Last edited by nezabudka; 02-26-2019 at 06:30 AM..
This User Gave Thanks to nezabudka For This Post:
9 More Discussions You Might Find Interesting
1. Solaris
Has anyone ever used rsync to copy files locally on one server? (in this case from one SAN volume to another).
I am familiar with using rsync to copy files between servers, but not locally, I would usually use cp or or tar or something.
Is rsync slower? Does it use additional overhead of the... (4 Replies)
Discussion started by: BG_JrAdmin
4 Replies
2. Shell Programming and Scripting
Hi
This is my situation
I have files on the left which I want to copy to the right. Once the files are copied to the right, they are processed and then deleted. The next time rsync runs I dont want it to copy the same files again, it should only copy any new files to the right.
I have been... (4 Replies)
Discussion started by: duonut
4 Replies
3. UNIX for Advanced & Expert Users
I'm looking to use rsync to compare remote files and to copy the diff to a local directory, rather than transfer over the net.
The net connection is not fast enough to transfer these files (~1.8TB) and I'd like to sneakernet them instead.
Possible? (4 Replies)
Discussion started by: dfbills
4 Replies
4. UNIX for Dummies Questions & Answers
I have a setup where I have two drives.
TV
TVbackup
For what ever reason, I have a lot of content on my TVbackup drive which isn't on my TV drive.
I want to copy all the files across which are on TVbackup but are not currently on TV.
If there is a file with the same name but a... (2 Replies)
Discussion started by: Spadez
2 Replies
5. SCO
Hello
I tried rsync (version 3.0.7) on OpenServer 5.0.7.
Compile the version of samba.org and use of aljex.com.
Both versions do not work reliably, sometimes show errors and stop copying (sometimes works)
The OSR5.0.7 I'm using VirtualBox, I do not think the problem is in virtualization, but... (0 Replies)
Discussion started by: flako
0 Replies
6. Shell Programming and Scripting
RootFolderI:
RootFolderI/FolderA/Subfolder1/Subsub1/JPG1.jpg -> want this jpg
RootFolderI/FolderA/Subfolder2/Subsub1/JPG2.jpg -> want this jpg
RootFolderI/FolderA/Subfolder2/Subsub2/JPG3.jpg
. . .
RootFolderI/FolderB/Subfolder1/Subsub1/JPG4.jpg -> want this jpg
... (1 Reply)
Discussion started by: blocnt
1 Replies
7. UNIX for Beginners Questions & Answers
Hi guys,
Don't really know much about unix or anything, just starting to mess around a little bit to have more understanding in general.
So, I tried using rsync to copy my macbook pro backup/clone from an external drive I have to another external drive. I ended up using...
"sudo rsync -a... (1 Reply)
Discussion started by: cbjeebs
1 Replies
8. Shell Programming and Scripting
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
9. Shell Programming and Scripting
I'm trying to copy a file myfile.scr from my local Linux server to multiple folders on remote AiX server using single rsync command.
Below command helps me copy the file "myfile.scr" from my localhost to a remote host folder "/app/deployment/tmpfiles"
rsync --delay-updates -F --compress... (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT PHP
removable-media
removable-media(9P) Kernel Properties for Drivers removable-media(9P)
NAME
removable-media - removable media device property
DESCRIPTION
A device that supports removable media--such as CDROM, JAZZ, and ZIP drives--and that supports power management and expects automatic
mounting of the device via the volume manager should export the boolean (zero length) property removable-media. This property enables the
system to make the power state of the device dependent on the power state of the frame buffer and monitor. See the power.conf(4) discussion
of the device-dependency-property entry for more information.
Devices that behave like removable devices (such as PC ATA cards, where the controller and media both are removed at the same time) should
also export this property.
EXAMPLES
Example 1: removable-media Entry
An example of a removable-media entry from the .conf file of a driver is shown below.
# This entry keeps removable media from being powered down unless
# the console framebuffer and monitor are powered down
#
removable-media=1;
Example 2: Implementation in attach()
Below is an example of how the entry above would be implemented in the attach(9E) function of the driver.
xxattach(dev_info_t *dip, ddi_attach_cmd_t cmd)
{
...
if (ddi_prop_create(DDI_DEV_T_NONE, dip, DDI_PROP_CANSLEEP,
"removable-media", NULL, 0)) != DDI_PROP_SUCCESS)
goto failed;
...
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
power.conf(4), pm(7D), attach(9E), detach(9E), ddi_prop_create(9F)
Writing Device Drivers
SunOS 5.10 15 Jun 2001 removable-media(9P)