Ubuntu Servers :: Rsync: Recv_generator: Failed To Stat (to The File Name...)

Apr 4, 2010

I've just noticed a small problem I am having with my company file server. When making backups to an external NTFS drive weekly I have noticed that the file names with thai characters are not getting backed up. I receive the below error:

rsync: recv_generator: failed to stat (to the file name...)
Invalid or incomplete multibyte or wide character (84)

There are thousands of files on the server that contain thai characters in there names so how do I get around this problem so it will back up all files and not just the English character ones. I read somewhere that each file would need to be converted to a different character set but this would take years as there are so many files.

View 1 Replies


ADVERTISEMENT

Ubuntu Servers :: Advanced Rsync - Make The Rsync Set Or Keep The User And Group Affiliations?

Nov 17, 2010

Thought I'd post it here because it's more server related than desktop... I have a script that does:

[Code]....

This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?

View 6 Replies View Related

Programming :: Tar; Cannot Stat: No Such File Or Directory?

Oct 5, 2010

I'm trying to backup every night a big directory (~2.5Gb) using tar+gzip.I'm calling tar like this:nice -n 19 tar --ignore-failed-read --exclude-tag-all=.kein-backup -Pczpsf '/backup/20100925233802f/archive.tar.gz' '/srv/products'And in 90% of the cases works just fine, in about 20 minutes is everything done. However, if it happens that in those minutes one file or folder from '/srv/products' gets deleted it reports me the following error:tar: /srv/products/prod14564.gif: Cannot stat: No such file or directorytar: Exiting with failure status due to previous errorsDoes it exist a parameter for tar to ignore this kind of errors? Is it there any other way to avoid these errors

View 3 Replies View Related

Fedora :: BASH :: Change File Stat In Sub Directory?

Oct 23, 2010

So I have created a Bash script with the intent of the program to change the names of the files in a folder's subdirectory.The code recognises the individual subdirectories, then is able to enter into one and list the files individually, but when it tries to change their information it says;' cannot stat ' : ' No such file or directory 'As if it is looking in the directory that contains the Bash script, not its subdirectory.It is essentially saying, I see a file here called FILE but sorry, I can't change FILE because FILE doesn't exist. kweh?Is this something outside the capabilities of Bash? Am I asking too much of it? Can Bash only manipulate files that are in the same folder as the script?

Code:
#!/bin/bash
echo enter directory

[code]....

View 6 Replies View Related

General :: Stat File For Permissions - Fork() Or Execve()?

May 6, 2011

When a application is ran from the shell:fork() is calledexecve() is calledI know the shell stats the file to make sure the required permissions are allowed in the child shell. But I can not find this in the man fork. Nor can I find this in man execve. Which one of these processes/calls stats the binary to be ran?

View 1 Replies View Related

Slackware :: Install: Cannot Stat `cuda.h': No Such File Or Directory

Dec 15, 2010

I am trying to install the nvidia-drivers from Slackbuilds.org. When I try to run the SlackBuild, I get the following error:

Code:
install: cannot stat `cuda.h': No such file or directory

What am I missing?

The nvidia-kernel SlackBuild ran fine and created the kernel package.

View 14 Replies View Related

Ubuntu Networking :: WUSB600N Wireless - Error Cannot Stat `rt3572sta.ko': No Such File Or Directory

Nov 11, 2010

well I am a novice in Linux OS, I have a wireless card, it's a Linksys WUSB600N but it doesn't work in Ubuntu 10.10 Desktop Edition, which it is the one I have, 64 bits machine, so I read this [URL] and I did all the steps, I downloaded 2010_0915_RT3572_Linux_STA_v2.4.0.2.tar but in the last part, sudo make install I got this error

alain@alain:~/t/2010_0915_RT3572_Linux_STA_v2.4.0.2$ sudo make install
make -C /home/alain/t/2010_0915_RT3572_Linux_STA_v2.4.0.2/os/linux -f Makefile.6 install
mkdir: cannot create directory `/etc/Wireless': File exists
make[1]: Entering directory `/home/alain/t/2010_0915_RT3572_Linux_STA_v2.4.0.2/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
[Code],,,,

so i have no way to get connected to the internet, what is that error cannot stat `rt3572sta.ko': No such file or directory, I think thats why i can make the wireless card work.

View 7 Replies View Related

General :: Error - /var/opt/axigen/domain: Cannot Stat: No Such File Or Directory

Mar 8, 2010

can you see below command i give return me error however it has been working fine before. there is 1 directory i want to make it .tar.gz [root@sa1 script]# tar cvzf /var/opt/bkup_axigen/axigen_bkup_2.tar.gz /var/opt/axigen/domain tar: Removing leading `/' from member names tar: /var/opt/axigen/domain: Cannot stat: No such file or directory tar: Error exit delayed from previous errors

View 2 Replies View Related

Programming :: Using Piped Data As Input - Cannot Stat '-': No Such File Or Directory

Nov 6, 2010

Code: stuart@stuart:~/$cat showthread.php.html | grep -o [URL][^"< ]*" | uniq | head -n3 | plowdown - cannot stat '-': No such file or directory Code: stuart@stuart:~/$ awk NR==$x Musiclist.txt | cut -d/ -f6 | basename $1 .mp3 .mp3 Here's some system info on the bash i'm using:

[Code]...

View 13 Replies View Related

Ubuntu :: Rsync Failed: Permission Denied (13)?

Nov 22, 2010

I have a Ubuntu box and just got a new hard drive. Rather than copy everything over from my old working Ubuntu install, I wanted to install Ubuntu from scratch and then rebuild the file contents.I have a large collection of music that I use on my mac (another computer) and like to keep sync'ed to the Ubuntu box. The following script used to work flawlessly:

Code:
rsync -avz --delete --exclude-from './music_exclude_list' '/Users/ryan/Music/iTunes/iTunes Music/' 'ryan@192.168.1.200:/home/share/music'

[code]....

View 1 Replies View Related

Ubuntu :: RSYNC Error - Backup Failed

Jan 29, 2011

Our backup script was working fine (ssh to the server, back up /home to a second hard drive on my computer). Then right after an ubuntu update, it quit working. I investigated and found that "something" had changed the label on the backup hdd to what looked like gibberish to me. But the script identified the backup hdd by its uuid, which didn't change. Yet, here is the error I get when the backup fails: receiving file list ... done [took about 5 seconds] rsync: mkdir "/media/14D9-3B1F/server-backup" failed: No such file or directory (2) rsync error: error in file IO (code 11) at main.c(594) [receiver=3.0.6]

Note that the backup hdd IS mounted, uuid is correct, and the folder 'server-backup' DOES exist. Does anyone have a clue for me? I'm moderately experienced in Linux and ubuntu. Our server runs centos 5. And as stated, the backup ran fine for several weeks. I think there was a new linux kernel on that update, but at this point a while later I don't know which one. Current kernel is .2.6.31-22-generic.

View 1 Replies View Related

Server :: Install Symantec Endpoint - Error: Unpacking Of Archive Failed On File - Cpio: Mkdir Failed - No Such File Or Directory

Nov 23, 2010

i am trying to install symantec endpoint on a linux server by this command rpm -ivh sav-1.0.3-8.i386.rpm but it gives me the following error error: unpacking of archive failed on file /opt/Symantec/bin/navdefutil;4ceb8d6b: cpio: mkdir failed - No such file or directory

View 3 Replies View Related

Fedora Servers :: Mount.nfs4: Mounting Localhost:/home Failed - No Such File Or Directory

Nov 28, 2009

I can not use nfs from F10 client to F12 server. nfs mount on F10 to F12 times out anf nfs4 mount gives "mount.nfs4: mounting localhost:/home failed, reason given by server: No such file or directory" I have tried to close firewall and set selinux to permissive mode on both client and server with same result. Samba works fine. On server [root@flokipal ~]# mount -t nfs4 localhost:/home /media/tonlist mount.nfs4: mounting localhost:/home failed, reason given by server: No such file or directory

but

[root@flokipal ~]# mount -t nfs localhost:/home /media/tonlist
[root@flokipal ~]#

works

View 3 Replies View Related

Fedora Servers :: Syncing The Servers With Rsync?

Apr 2, 2009

I setup an rsync in cron to sync a master server with a backup server. however not everything gets copied over or removed. I believe this to be a permissions issue on the backup server. I am using a user we created specifically for this, and the rsync is setup to preserve permissions and delete files that have been deleted on the master..

Here is the rsync command:

59 11,23 * * * rsync -avP --delete -e "ssh -pPort" /media/_Files user@ip address:/media >> /home/user/sync.log

Of course the ip address, user and port number is something else then above.. Is there a way to make the user that is initiating the sync into a superuser like root? That way everything on the backup server can be updated as necessary? I don't want to use root, Id like it to be a name I can keep relatively confidential.

View 3 Replies View Related

Ubuntu Servers :: Installing File Sharing Using EBox - Failed To Enable: "root Command /usr/share//ebox-samba/ebox-samba-enable Failed"

Sep 27, 2010

Installing file sharing using eBox and get the following error:

[Code]///

View 1 Replies View Related

General :: Mv: Cannot Stat `/public/public/clamscans/*.txt': No Such File Or Directory

Sep 24, 2010

I run the following file with the >log.log redirector and it does not capture errors.

#!/bin/bash
echo ************************BEGIN LOG******************************
date +"%m/%d/%Y %H:%M:%S $HOSTNAME"
cp -f /scripts/original/clamscans.log /scripts

[code]....

The following errors show up when I run from the file from the term window, but are not written to log.log:

tar: /public/public/clamscans/*.txt: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
mv: cannot stat `/public/public/clamscans/*.txt': No such file or directory

I know with windows you can add the 2>&1 to capture error data. Is there such a thing for Linux?

View 2 Replies View Related

Ubuntu Servers :: Cron Will Not Run Rsync Job

Mar 30, 2011

I am running a headless Ubuntu server accessed through Webmin. The server is running 10.4.2 64 bit version. I have a number of cron jobs including a simple back-up job which is:
Code:
rsync -av /media/server/ /media/backup/backup/
All of the other jobs run fine but for some reason this job which is scheduled to run each day at midnight does not run. If I SSH into the server and run the job manually it works fine.

The output of 'crontab -l' is:
@daily rsync -av /media/server/ /media/backup/backup/
11 3 * * * /etc/webmin/package-updates/update.pl
@daily tar czf /media/backup/serversystem.bz2 --exclude=/proc --exclude=/lost+found --exclude=/backup.tar.bz2 --exclude=/mnt --exclude=/media --exclude=/sys /
@reboot inadyn --username ********** --password ********** --update_period_sec 600 --alias **********
@daily /etc/webmin/backup-config/backup.pl 12978522112842

The output of 'crontab -e' is:
Error opening terminal: unknown.
crontab: "/usr/bin/sensible-editor" exited with status 1

View 9 Replies View Related

Ubuntu Servers :: Rsync Script On Boot?

Sep 13, 2010

We are looking to centralize some code in a scalable environment. So some servers may do other jobs, etc. doing other things, but the key element is when the server is booted, I want it to rsync some config files, scripts, etc. local to the box and I am having an issue as things are a bit different from an RHE server.

I have a test entry in the rc.local a simple touch testfile, then after that a restore.sh file. I reboot the box, wait a minute then login. I see hte testfile timestamp updated yet the rsync doesn't fire. I can then manually run it and it works fine, but I need to have this go on boot.

View 2 Replies View Related

Ubuntu Servers :: RSYNC With Archive Backup

Sep 15, 2010

I have a Linux host acting as an ISCSI server for a Windows box. I want to keep an off site backup, so I figure rsync will keep the ISCSI server synced with an offsite Linux host. I understand that Rsync does block level incremental transfer to conserve bandwidth ok, awesome.The trick is, that I also want an archival copy kept. Say I want to go back to a revision of a file from 10 days ago, I need to be able to do that.

I was planning on using Backup Exec, since we currently have a licensed copy. Throw the archives from Backup Exec onto the ISCSI server as well, and have it keep a rotating 30 day backup, or something like that. The issue I see here is that this will be creating a deleting files as it does its daily backup rotation. I'm guessing RSYNC will see these as new files, and likely retransmit everything on a daily basis. The question then becomes, is this assumption correct, or will it still know to do a block level incremental transfer even when file names and such are changing?

View 5 Replies View Related

Ubuntu Servers :: Any Way To Encrypt Backup Using Rsync

Feb 4, 2011

I support a small business which has an Ubuntu server running as a file server. The server is running Ubuntu 10.4. There is one hard drive which is mounted as /media/hdd. Each night this is backed up to an external USB hard drive mounted as /media/backup. The backup is carried out using the command:

Code:
rsync -av /media/hdd/ /media/backup/

Is there a way to encrypt this back-up so that if the USB hard drive is plugged into another machine it cannot be read?

View 5 Replies View Related

Server :: Rsync Between Two Different Servers

Dec 8, 2010

I have two servers. #1 is the main server and #2 is only used in case the first one is down. Both of them are in the same LAN. Both are debian Lenny configured the same way. For instance, if #1 has a problem, I simply disconnect it, set #1's IPs to #2 and I have my system ready. The only matter here is that there are plenty of files that need to be syncronized between #1 and #2. I thought that rsync was the answer to this problem I have.

I wanted to create a bash script that runs every day (with cron) and syncs the files I need (.conf, and other data). I used ssh-keygen to generate a pair of keys in order to login SSH without a password. The problem is that the permitRootLogin is set to yes in my sshd_config in both servers. So I can't log in directly as root by ssh. But I need to log in as root to be able to rsync the files between the servers because some of them are .conf files and aren't accesible for non-privilege users (Only root).

View 7 Replies View Related

Ubuntu Servers :: Rsync - Backup Only Changed Blocks?

Aug 10, 2010

I'm going to make a nightly backup copy from one server to another, using rsync. If I have a sufficiently large file, say 4+ GB or so, I'm not interested in copying the whole file if only a small change has been made. Can rsync detect small changes on block level and backup only those if needed?

View 2 Replies View Related

Ubuntu Servers :: Remove Directory Structure With Rsync

Apr 6, 2011

I have several copies of a file set with different organizational structures, but the same files. i.e.
On client1 files can be found in ~foobarfile1, ~foobarfile2, ~foo-avernfile3, ~foo avernfile4
On client2 files can be found in ~foo-barfile1, ~foo-barfile2, ~foo-tavernfile5, ~foo avernfile6
On client3 files can be found in ~file1, ~file3, ~file5, ~file7

I have access to one client and the server where I'd like all the files to be synced. I'm not worried about conflicts, just having a complete copy of all files[1-7]. Is there a way to cause RSYNC to remove the directory structure, so that I get something like:
client1% rsync files server:backup
client2% rsync files server:backup
etc
where at the destination all files will be checked against the destination set regardless of the source directory structure?

View 4 Replies View Related

Ubuntu Servers :: Rsync To Username / Password FTP Server

Jul 26, 2011

Im reading a lot on how to rync to an ftp server but none of the steps are telling me how to do it on servers that use normal authentication.Example I want to keep /var/www in sync with a folder on an ftp server in a folder called /cdn/.Id like to see all files and folders in sync, not just a compressed file etc

View 2 Replies View Related

Server :: Rsync Files Between Web Servers?

May 20, 2010

I've 15 web servers (in private network) running RHEL, Apache. Needs to sync web files between them. each server is accessible to each other via public key (with passphares).

1) Main server is web1 (where dev upload files initially). So I can make all other servers accessible by web1 without password/passphares and run rsync periodically to update files between them. But security is an issue here as all servers will become easily accessible.

2) Run rsync daemon in all other servers (except web1) on designated port and run rsync command from web1 to sync files. This will do the work but running daemon in all servers might increase overhead and making sure that daemon is running all the time etc. are my concern for this implementation.

View 8 Replies View Related

Ubuntu Servers :: Rsync Windows Client Folder To Server

Mar 27, 2010

i have an ubuntu server 4 windows client..i use putty or webmin. would like to copy some folders for example: "My houses"to be backup everynigth to the ubuntu server..can somebody give me an easy way for doing this with rsync and smb or cifs.

View 4 Replies View Related

Ubuntu Servers :: Rsync Auto Login And Schedule Backup?

Nov 11, 2010

I have setup Rsync as a daemon on a Ubuntu 10.04 box and the setup was successful. Here are my configs

Code:
root@hurricane:`# nano /etc/default/rsync
# defaults file for rsync daemon mode
# start rsync in daemon mode from init.d script?
# only allowed values are "true", "false", and "inetd"

[Code].....

View 6 Replies View Related

Ubuntu Servers :: Rsync Backup - Transfer Files With Appropriate Permissions

Dec 4, 2010

I wrote a script to wake up my windows machine and do an rsync backup of some of my files. I wanted to make this command a accessible through local bin so I made it executable. However the problem is that when I copies files is copies them with root permissions and i can edit or delete them. How can I set the files so they transfer with the proper permissions for my Ubuntu user?

Code:
#!/bin/bash
# Description: This script first wakes up the client machine and syncs the appropriate folders.
# Finally the script shuts down the client if it was off to begin with.
if [ "$(whoami)" != "root" ]; then
echo "Permission Denied"
exit 1
fi .....

View 8 Replies View Related

Ubuntu :: Rsync: Failed To Set Times On "/media/NAS":

May 16, 2011

Problem: rsync to NAS gives 'rsync: failed to set times on "/media/NAS": Operation not permitted (1)'

Efforts to date.

1.Initial set up was ubuntu 10.04 on stock DNS 323 NAS. Grsync would copy file names and folders to NAS but they all were 0 bytes and no data.

2.Set up FFP on NAS, installed rsync server on NAS, and retried. Grsync now copies all the files and folders,but get the 'rsync: failed to set times on "/media/NAS": Operation not permitted (1)'

3.Grsync with -t removed (does not preserve time) works without error message, but does not keep time/date on NAS backup.

Setup: NAS is automounted with CIFS:

//192.168.1.999/NAS/ /media/NAS cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=07 77 0 0

Reading at length seems to reveal that this issue is a permission problem. So my question is:

1.Is there a simple edit to my fstab file that would give me permission to save time/owner to my NAS?

2.Would I be able to use chown to modify the folder on my NAS to own it? ***if so -> syntax to use chown on a network drive.

3.Do I need to edit my NAS rsync server to solve this?

4.I have a 1 gig network/cards, my speeds are 4mb/sec. Is this a good speed for this type of network, or is this a bug of CiFS networks?

View 1 Replies View Related

Ubuntu Servers :: Live / Instant Rsync For Master Slave Setup

Feb 8, 2011

I need to perform instant filecopy between a pair of servers. Its loosely based on a master slave setup as we have ucarp floating a virtual IP between the two. services are on both boxes (tftp, apache). I'm happy with that, I now need a way to instantly sync files from set directories, as we could see problems if files have changed should the system fail over without being in sync

I know I could cron *1 but I don't want it running EVERY minute, in any case, if the change was within the last minute, then it wouldn't have the change anyway. I think it can be done with rsync daemons on box boxes, but I can't find a guide to to this. ATM the slave has been setup to accept rsync from the master, so I just need the config to have all changes on the master instantly replicated.

View 3 Replies View Related







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