Software :: Script For Copying Files From One Location To Another?

Feb 10, 2010

I'm working on a little bash script for copying files from one location to another, while sending the verbose output of cp to a text file.

how can I append a time stamp to the verbose lines in the log file.

The command:

Code:
cp -fRcp dir1/* dir2/ >> log/$(date +%y-%m-%d)_log.txt

Again, I want to know how I make the time stamp appear in front of the line inside of the log.txt.

View 3 Replies


ADVERTISEMENT

Ubuntu :: Copying All Files In Folder To Another Location?

Feb 21, 2011

suppose I have a tree structure like this:

/home/mahmood/sim/a/b/file1.cpp
/home/mahmood/sim/a/b/file2.h
/home/mahmood/sim/a/c/file3.txt
/home/mahmood/sim/d/file4.txt

How can I copy all of them to /home/mahmood/sim. So that when I run "ls" in /home/mahmood/sim, I see all files:

file1.cpp
file2.h
file3.txt
file4.txt

Can 'cp' search for all file and copy them in another folder?

View 2 Replies View Related

General :: Fast Copying Data From One Location To Other?

Apr 6, 2010

Is there any windows equivalent tools (like tera copy, Fast copy in windows) for linux for fast copying data from one location to other?

View 1 Replies View Related

OpenSUSE :: Dolphin Losing Files When Copying Many Files Or Large Folders?

Feb 14, 2010

I've discovered that Dolphin seems to lose random files when copying many large folders.

I first noticed this a few months ago when I tried to copy my music library from one folder to another on the same HDD. It consisted of around 600 folders and 6500 files. During the copy there were no errors but after the copy I found that some of the newly copied folders were missing files. I put it down to human error or a glitch.

Yesterday I tried to copy 13 folders containing rips of some of my DVDs. Each folder basically had one film of either 700MB or 1.4GB. Again no errors showed up during the copy but I found 3 of the newly copied folders were empty.

It's not so critical with music or films but I can't afford to lose work data like this.

Has anyone experienced or seen a similar problem with Dolphin? I'm going to have to do some more extensive testing but this is not good.

The first time I noticed the problem I was running KDE4.3.4 (I think) and now the latest was with KDE4.4.0.

View 9 Replies View Related

Ubuntu :: Command Line To Copy Files From One Location To Another / Retain Source Files Group / User?

Feb 20, 2011

Is there a method at the command line to copy files from one location to another and retain the source files group and user?I'm migrating some MySQL files from one machine to another.I want to back-up the original files in the directory presently. They have owner:group of mysql, some have owner:group root:mysql and so on. To copy them under cli or Nautilus everything changes to root for I execute sudo cp or gksudo nautilus and copy via gui.

Since it is MySQL data I could simply do a dump of the database and restore it on the other machine. But there's about 20 db's and I want to do this via a copy for it will be faster - at least that is what I think.

View 5 Replies View Related

Fedora :: Copying Files Using Scp And Find?

Aug 29, 2010

I want to use find and scp to copy files. Is there a way to copy files that have spaces in their names? I know you can add " tags for a single file but can find do that? This is the command that i use:

scp $(find -iname "*.avi") destination

View 12 Replies View Related

Fedora :: Copying Files-No Permissions?

Oct 30, 2010

I was told fedora is great operating system but all i run is into trouble, hours spend on searching for solutions and never get an easy answer as it is on Leopard or even windows 7.What's my problem. I installed a new dvd copy of fedora13, and now connected 2 USB hard drives that seem to connect fine, can access everything but if i try to copy files to one of the drives it says i don't have permissions, and the fields to change permissions access are blank.

View 1 Replies View Related

Fedora :: Rsync Not Copying All Files?

Sep 9, 2011

My Source folder contains 424.8 GB in 502,474 files. My Destination folder was created fresh, and after the copy contains 394.0 GB in 486.514 files. I am running it as grsync with root authority. The only options are to preserve time, permissions, owner and group., and to produce a verose output and transfer progress. There are no exceptions specified to skip any files.

The rsync command is this:

rsync -r -t -p -o -g -v --progress -c -l -H -D -s /mnt/Backups/monthly.3/ /mnt/EX-Fantom/monthly.3/

I have run it again to give it a chance to get it right. Same result. The source is in an rsnapshot folder, but this is the first backup, the original, containing only whole files, not links.

View 3 Replies View Related

OpenSUSE Network :: Copying Files From FTP?

May 21, 2010

when I try to copy files from ftp server, at some moment speed falls to 0, i recive message "copy stalled" and my system frozen.I used Opensuse 11.2 (kernel linux 2.6.31). Some people advise me to upgrade the kernel. I upgraded it to linux-2.6.34, but it did not fixe a problem.Copying from ftp is very important for me, i like opensuse, but if i will not fixe this problem, i will must to change the OS.

View 5 Replies View Related

Ubuntu :: Copying Files From OpenBSD 4.5 To OS

Jan 19, 2010

I need to copy some files from an OpenBSD 4.5 server to my Ubuntu set up via flash disk tell me what commands to enter on each in order to do this please? I believe OpenBSD is UFS and I'm running 9.10 so Ubuntu is ext4

View 9 Replies View Related

Ubuntu :: Copying Files Across Network

Apr 6, 2010

I am trying to copy files across a network using terminal. i know this is possible but i can't find a way. but i can paste smb://xxx.xxx.xxx.xxx/myfolder in the address bar in a folder and navigate to the correct area.is there some other way i can do this?

View 8 Replies View Related

Ubuntu :: Copying Files From Other Computers?

Jul 27, 2011

I had to leave rather suddenly (decision was Germany's, not fiancee's), and now am in the States again, but my files are still there. There are lots of things (mainly photos) on there, that I would like to have here. SOME stuff is on CD/DVD, but there is stuff that isn't.

Is there some way that I could access her computer and just copy files to mine?
(I picture two folders, one on hers, one on mine, and I just dragging an icon from one to the other - but I don't suppose anything's THAT easy...)

Naturally, her computer would have to be on, and I assume she could not be using it herself. Naturally also, I would get her permission first...

I assume that it would take a while, but if it were as simple as the icon thing I described above, then I could just go away and come back later. I assume something would be running to make sure that the destination file and source file were identical before proceeding to the next file.

[Before you suggest: why doesn't she just copy the files to DVD's and mail them to me? She is not all that computer saavy, I'm afraid, and trying to explain it all, including the exact folder names and such, Plus, how to use a DVD/CD burner and software... Plus translate it all into German... If I were rich enough, I could just go there and do what I needed, but that is not in the cards for the present. ]

IS there a way to copy stuff from her computer to mine?

View 2 Replies View Related

General :: Copying Files Using Smbclient?

Jun 7, 2010

I have a new network attached storage unit that I'm trying to transfer my data to. On this NAS, it has a very basic linux installed with SSH enabled. Browsing through the programs installed on it, i found smbclient. Am I able to copy files directly from my old NAS to my new one using smbclient?It would sure beat transfering 950GB from my old NAS through a computer then onto my new NAS.

View 1 Replies View Related

Networking :: Copying Files Over A Network

Jan 8, 2010

While copying a large amount of data between two linux computers I noticed strange behaviour. The network card activity (computer copying the files) would be dormant for 30 second to a minute and then flash rapidly for just 5 second or so. This repeated for the duration of the copying progress (approx 2 hours at a supposedly constant 5-7MB/s).

The share that I was copying to was via SSH using "connect to server" from the GNOME menu. I was expecting the see the network card activity light constantly flash. I wondered if someone could explain this strange behaviour that I have witnessed.

View 5 Replies View Related

General :: Copying Files From Windows?

Jan 3, 2011

How can I copy some files from a windows machine to Linux machine ?

View 13 Replies View Related

General :: Copying Photo Files To CD?

Jan 16, 2010

I am running openSUSE 11.2 KDE 4.3.4 on my ThinkPad R51 laptop.I would like to copy 'File A, File B, File C' (for example) that has photographs of a holiday , to a blank CD inserted into my drive and cannot find a way to 'copy and paste' into the volume.

View 3 Replies View Related

Software :: Renaming Or Copying Some Files?

Apr 19, 2011

i have some files on my server that i can not rename or copy it seems file names are some how strange for linux (centos)the names are like this way :

Spirited.Away.2001.HDRip_-_(Film98-Net).mkv
Up.2009.BRrip_-_(Film98-Net).mkv
How.To.Train.Your.Dragon.2010.720p.Bluray_-_(Film98-Net).mkv

[code]...

View 6 Replies View Related

Debian :: Squeeze Crash When Copying Files?

Sep 9, 2010

I'm running squeeze on i686, my last update was this morning (9/9/2010). Running the stock kernel 2.6.32-5-686

My PC keeps crashing when copying files. The monitor displays the desktop, but the mouse doesn't move, nothing responds and I can't even ssh in to debug it.

This happens when copying files using nautilus and the command line. I'm trying to copy files from my local hard disk to an nfs drive which is mounted in my system and has been working fine for years.

how to debug this after a hard reboot?

This has only just started happening, last night was the first time.

View 4 Replies View Related

Debian :: Copying Files To USB Stick Changes Case

Nov 30, 2010

I've observed that if I copy a directory containing some files to an USB stick, files whose names are all upper-case are copied with all lowercase names. Is this expected behavior? The USB stick is shared with a Windows box.

View 13 Replies View Related

Fedora :: System Lags While Copying Big Files

Mar 16, 2010

Why system lags so much while working with a lot of files or with big files (copying them, erasing)? How it can be solved? I am running Fedora 12 x86_64 with ext4 filesystem

View 14 Replies View Related

Fedora Networking :: Copying SSH Files Into Computer?

Jul 18, 2010

I have a saved a .c file on my department computer and i am able to access it through my computer via SSH. BUT I WANT TO copy and paste it into my system.

View 3 Replies View Related

Fedora Servers :: Copying Log Files From Server Using Ssh?

Aug 12, 2010

I have a server with RedHat distro which stores and updates someg files and second computer with Windows 7 on it. I must configure both machines so one can get those files from server to Win7 machine using ssh. But I have no idea how to do it.

View 3 Replies View Related

Fedora :: Copying Files To And From Virtual Machine?

Mar 11, 2011

I have installed Windows XP with Virtual Machine Manager. The question is how do I access files on my primary linux system? Also can I mount a NTFS partition in my Virtual Machine

View 14 Replies View Related

OpenSUSE :: Rsync Copying All Files Instead Of Just What's Changed

Jan 11, 2011

During my backups I'm finding that rsync is copying all files, instead of just what's changed.

I'm rsyncing between 2 USB external hard drives. One hard drive is FAT32 and one is NTFS. I've examined some of the files and believe that the difference is that there's a 1-second modtime difference developing in some of the files somehow.

Here's an example. These duplicity files were synced from /media/BACKUPHD (the NTFS drive) to /media/VIDEOHD (the FAT32 drive) only a few hours ago this morning. They have not been touched or changed since then, but that 1-second difference in their time stamps has appeared:

Code:
tim@localhost:~> stat /media/BACKUPHD/backups/duplicity/duplicity-full.20110107T145955Z.vol10.difftar.gpg File: `/media/BACKUPHD/backups/duplicity/duplicity-full.20110107T145955Z.vol10.difftar.gpg'

[Code]....

View 8 Replies View Related

General :: Prevent SCP From Copying Local Files?

May 17, 2010

I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying to a remote host, e.g. I do
scp foo host
instead of
scp foo host:
But I never use scp to copy a file locally. So I wonder if there is a way to make scp fail if both (the source and destination) arguments refer to local files.

View 1 Replies View Related

General :: Copying Files From Ubuntu To Windows Xp?

May 8, 2011

i am accessing linux through putty and i wrote somany programs in unix using putty and gedit but now i need to copy all files into windows. how to copy directory(linux) to folder(windows) without installing any softwares?If it is necessary to install software to copy files then tell me the process of using that software.

View 5 Replies View Related

Ubuntu :: Copying Files Between Windows Partitions

Jan 20, 2010

I need to copy ~300GB of drives from one Windows hard drive to another using a Ubuntu live CD. (I currently don't have enough power connectors for my Windows system drive AND both existing and new data drives. Stupid power supply.)

By Windows drive, I mean the drives are only data drive (no Windows install) but the files on the first drive were created and are used by my Windows system, both were formatted NTFS in Windows, and the files will again be used by Windows on the second drive.

Are there any pitfalls I need to be aware of, or can I literally just drag the files across in Nautilus? Is there a faster copy utility available (I know there are Windows programs that can copy faster than drag-n-drop, but I'm sure Ubu doesn't have the same problem ) Will using a Live CD cause any specific issues?

View 8 Replies View Related

Ubuntu :: Copying Windows Files By Extension?

Mar 8, 2010

I want to search a Windows partition for all .doc and .xls files and move them over to Xubuntu to burn them to CD.

Is this easiest to do via terminal? I tried to use catfish and select all files, but I think my Mac keyboard (and USA standard keyboard settings) threw the select all files ability.

View 4 Replies View Related

Ubuntu :: Permission Denied While Copying Files To Var/www

Mar 16, 2010

I just installed Apache2, PHP5 and MySQL on my Ubuntu 9.10. I have about 200+ .php format files of my site (including index.php) which I need to copy to var/www.

But the permission is denied.

View 5 Replies View Related

Ubuntu :: Copying Thunderbird Files From One Machine To Another

Jul 27, 2010

I have a tarball of my old .thunderbird directory that I untarred onto my new machine. When I open Thunderbird, it wants me to go through the setup process. I've copied these files before and was able to get into my email.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved