Ubuntu / Apple :: Script To Deal With Pseudo-hardlinked Directories In Time Machine Backups

Jun 16, 2010

Just wanted to share a script that I wrote to migrate data off of a Time Machine backup. As anyone who's tried this knows, it's not straightforward because most directories are pseudo-hardlinked according to some hare-brained scheme Apple came up with. (Hard-linked directories actually show up as zero-length regular files with bizarre link counts greater than 128. The link count corresponds to a directory called "dir_$N" (where $N is the link count) inside of a special directory at the root of the Time Machine volume called ".HFS+ Private Directory Data^M" (where the ^M is a literal carriage-return character).)

Here's the script (it's also attached, for convenience). It works pretty much the same as "rsync -av <SRC_DIR> <DST_DIR>" would, if the pseudo-hardlinks weren't in the way. In other words, it just recursively copies the first directory to the second. So the first argument (the source directory) is typically something like

/media/<TIME_MACHINE_VOLNAME>/Backups.backupdb/<HOSTNAME>/Latest/<VOLNAME>

if you want the entire latest backup. It can also be a relative path, if you've already changed to a directory inside the backup.

[Code]....

View 2 Replies


ADVERTISEMENT

Ubuntu Servers :: Mounting USB For Apple Time Machine BackUps

May 1, 2011

I'm trying to follow various ways to setup a Time Machine drive on my Ubuntu 'natty' server. I am at the stage now though where I can't seem to find the external USB HDD anywhere. I have it partitioned into two and cannot find anything to do with it. When I check ot doesn't show up in the memory either. Is there a way to mount it or find it?

View 3 Replies View Related

Ubuntu Networking :: Create File Sharing Between MacBook Pro And Lucid Box For Time Machine Backups?

Mar 19, 2011

I've been trying to create file sharing between my MacBook Pro and my Lucid Lynx box for time machine backups and media server purposes. I followed this guide:[URL]..Everything seems to work with these exceptions: I can see my LucidLynx box in my finder app in my Mac but only when I run these commands from Ubuntu:

Code:
sudo /etc/init.d/netatalk restart
sudo restart avahi-daemon

If I restart my LucidLynx box then I can't see anything in finder. I can't log into my LucidLynx box from finder. I don't get a bad username or password error it just tells me the connection failed. *Note if I do enter an incorrect username or password it WILL tell me it's incorrect. I've looked at this link below since some people have used it in theses forums but it's a bit dated[URL]..

View 2 Replies View Related

Ubuntu / Apple :: Install Mac OS X Without Time Machine?

Apr 19, 2011

I cannot install Mac OS X on my MacBook. When I boot from the DVD the only option I get is to install the OS from Time Machine. I cannot do a clean install from the DVD. Why is that? And how can I change it? How do I get the computer to install Mac OS X from the DVD, and not Time Machine?

View 7 Replies View Related

Ubuntu / Apple :: Extracting Specific File From Mac Time Machine Drive?

Mar 5, 2011

I am trying to extract just a few files/folders from a Time Machine backup, but can't seem to find them. The drive is automatically mounted in Ubuntu, and am able to access after enabling view hidden files, the HFS+ Private Data Directory. But that is a jumbled array of thousands of numbered folders, with each taking a fair amount of time to open on this aging Dell running 10.10.

I've tried running the standard Places - Search for Documents, with 'Show hidden and backup files' enabled, but that won't pull up any of the search times I'm going for (and seemingly won't find anything at all on the drive). So, is there any way to decipher the directory tree so as to be able to access this data from Ubuntu? Or perhaps a file embedded somewhere in there that lists out the original structure, so that I can use it as an index to see what number correlates to what originally named folder?

View 2 Replies View Related

Ubuntu Networking :: Grub2 Is Unable To Deal With Mounting The Samba Shares On Lan At Boot Time

Oct 15, 2010

I've been having terrible trouble with my 64bit Desktop v10.04 ever since I upgraded it. Has been a long battle - but I think I have it down to just one remaining issue which I suspect is more related to the network than to the upgrade. So I'll ask here also... The old system always used grub as the bootloader, and has always worked just fine. I have now had to do a complete fresh install, which incorporated a change to grub2 (first time I have used it).

It would seem now, that grub2 is unable to deal with mounting the samba shares on my lan at boot time. The boot always fails, dumping the user to the cli rather than the gui desktop. The error given indicates that the network is unreachable. Most users of the system have given up on Ubuntu altogether because of this, and fallen back into the clutches of the evil empire (the machine dual boots XP). If I log in, and manually startx to open the desktop, the network is there, and the shares are mounted just fine. Everything seems to be working ok - but for crashing out of the boot process with network errors. The fstab file follows, in case there is some cause there I'm not seeing (I have edited names and passwords prior to posting)...

[Code]....

View 4 Replies View Related

Server :: Setup House Mostly (for The First Time) For Backups And File Sharing?

Jan 28, 2011

**Edit: path for mount was incorrect Distro Server: CentOS 5.5

Clients:
Fedora(latest)
OSX(latest)

Backround I am attempting to setup a server in my house mostly(for the first time) for backups and file sharing. It is important to me that file permissions are preserved. So its my understanding that I must use idmapd in order for this to work. As of now I'm only working with the linux distros while osx will be dealt with once these two work together. portmapper is up and running, along with lockd on both machines. Firewalls are also down on both machines for now. The server side was all setup using the GUI interface with no extra options selected. Problem When attempting to "mount -t nfs4 10.0.0.2/$sharedfolder /mnt" I get an error operation not permitted with no error printing in /var/log/message. If I use "mount -t -o nolock nfs4 10.0.0.2/$sharedfolder /mnt" it mounts just fine. Ive checked both machines multiple times to make sure that lockd is up and running. In the idmapd.conf file I the domain as "localdomain" for both machines but I doubt that is right; like I stated above this is my first attempt at a server. I'm assuming the problem is a whole missing step that involves some kind of id mapping server I need to setup.

View 5 Replies View Related

CentOS 5 :: Scheduled Unattended Backups With Alerts If The Backups Fail

Feb 3, 2011

I've been a DOS/Windows guy for 20 years, and recently became a SW test lab helper. My company uses CentOS for a lot, so I've become familiar with it, but obviously not as comfortable as I am with Windows.

Here's what I have planned:

machine: Core 2 Duo E8400, 8GB DDR2, 60GB SSD OS drive, ATI 4650 video card, other storage is flexible (I have 3 1TB drives and 4 750GB drives around that can be used in this machine.)

uses: HTPC, Network Storage, VMWare server host: SMTP, FTP server, and Web server virtual machines

I've figured out how to do much of this, but I haven't figured out how to do backups in Linux. I've been spoiled with Windows, with the built in backup system so simple to use. I find myself overwhelmed with the array of backup software, and unable to determine which to use. none of them seem to do everything I need them to do, but some come close, I think. I'm hoping someone here can help me out in figuring out which program to use and how to use it.

Here is what I need the backup software to do:
1. scheduled unattended backups, with alerts if the backups fail
2. a weekly full backup with incremental every 12 hours
3. removing the old backups when the new full backup runs, I would prefer to keep 2 weeks of backups, but that's not necessary
4. a GUI would be preferable, since my arthritic fingers don't always do as I want them to do. I typo things a lot, and the label worn off my backspace can attest to that.

View 7 Replies View Related

General :: Rsync Incremental Backups Rather Than Full Backups?

Nov 12, 2009

How do you get Rsync to do incremental backups rather than full backups? At the moment I have a script that will create a backup folder (if it doesnt already exist) then copy the source files into the backup directory with the command

rsync $VERBOSE --exclude=$TARGET/ $EXCLUDE --exclude '/Ls-wtgl1c8/**' -rt --delete $source/ $TARGET/$source/ >> $LOG_FILE

Target is where the files will be backed up to Sources is the dir(s) to be backed up Exclude files is the list of files not to backup
log file is where the output will be saved to. At the moment it only does full backups, but I would only like to do incremental, how would this be achieved? Am I missing out an option in the Rsync that is required.

View 9 Replies View Related

General :: Osx - Move A Bunch Of Hardlinked Files From A Box Onto OS X Mac And Preserve The Hardlinks?

Dec 8, 2010

I have an rsnapshot backup that I need to move off of a corrupt Linux file system. I need to preserve the internal hardlinks. I've tried rsync -H and using a newer rsync and neither preserve the hardlinks on OS X.

I tried to get rsync -H working and I've isolated it to the file system mounted. I can preserve hard links copying locally (HFS to HFS) but it doesn't preserve when I try to rsync off of a SMB file system mount or AFP file system mount. Is there some mount option solution to getting OS X rsync to obey -H?

View 2 Replies View Related

General :: Use The Second Drive For Backups, Both Manual And Using Back In Time \ Noticed That The Second Drive Was Formated In FAT32?

Nov 1, 2010

I have a second hard drive in my desktop and both the main dirve and second drive are 250GB. I use the second drive for backups, both manual and using back in time. The other day I noticed that the second drive was formated in FAT32. If I go to disk utility and look at the drive it says:Usage:FilesystemPartition Type:Linux (0x83)Type:FAT(32-bit version)Is this ok? I thought in Linux it should be Ext4. So far its been working fine for a while now but if I need to move my files and re format it to ext4 and move them back I would rather do it now when there is less data on the drive.

View 3 Replies View Related

Ubuntu :: Find Files With Directories And Sort By Mod Time?

Dec 4, 2010

what i wanted to do was find all the files with a specific name from a tree, sort them by modification time and have their directory appended to them so that i knew where they were (because they all have the same name). i tried a whole bunch of different things and finally did this:

Code:
find . -type f -name world.sav -exec ls -l '{}' ; > ~/dfsaves.txt; gawk '{$1=""; $2=""; $3=""; $4=""; $5=""; print}' ~/dfsaves.txt | sort -n > ~/dfsavessorted.txt

this did the trick pretty well, but as you can see it is far from elegant and i think i'm doing some things wrong and kludgy

first thing i tried was "ls -lRt | grep world.sav" which worked except i couldnt distinguish the files because there were no directories. that took a lot of looking till i accepted i couldnt make ls print directories as well and append them to the files somehow that their relationship would be clear. i tried piping ls to find, doing it in reverse, passing them from grep etc. etc. until i read some more stuff online that got me using gawk and sort. the questions:

1. is there some other, more elegant and simple way to do this kind of detection and sorting?

2. is there any way to use a pipe after using exec? the semicolon seems to prevent this entirely, forcing me to use an intermediate file as above. i could just remove it later, but i'd prefer a straight piping.

View 8 Replies View Related

Software :: Create Certain Files And Directories With Specific Owners On The Target Machine

Jun 29, 2010

I'd like to create a tar file on my machine to distribute software to other machines which are all alike (including, usernames, groupnames, etc). I need to create certain files and directories with specific owners on the target machine. In order to do that, I use

Code:
tar --create --owner=someone --group=somegroup --file package.tar files. However, for this to work, someone must be in my /etc/passwd and somegroup must be in my /etc/group. Is there a way to fake this so I don't have to create a bunch of users only for that purpose?

View 3 Replies View Related

General :: Need To Synchronize Local And Remote Directories In Real Time

May 18, 2010

I'd like to have a copy of a web site on my local drive. Then when I make changes to that copy, have those changes automatically updated on the site's server. Ideally I'd like to tell it to only do this for certain file types. Does anybody know of a way to do this with Linux?

View 2 Replies View Related

Ubuntu / Apple :: Mac OsX Emulator/virtual Machine Like Wine For Windows?

Apr 27, 2011

Is there a way I can run Mac (OS X) programs on a Linux (Ubuntu) system in a virtual machine like either Wine or VMware (maybe that is the wrong term) for Windows programs?

Specifically, I want to develop an iphone app and I would like to use the simulator and IDE "Xcode" provided by Apple but they only will run on Mac.

View 1 Replies View Related

Ubuntu / Apple :: MacBook Pro Boot Time Very Slow

Nov 4, 2010

How do I speed up the Macbook Pro boot time? In OSX when I boot it goes directly to the mac logo. In Ubuntu there seems to be a 10 second or more hesitation before it access my hard drive. Is there anyway to change some settings in the BIOS / EFI?

View 6 Replies View Related

Ubuntu / Apple :: Machine Running Maxed Out In Order To See Where Things Can Be Improved

Sep 21, 2010

So now I've got my iMac G3 running nicely I was wondering how I go about running a burn in test so that I can see if I can improve the cooling in places by manipulating airflow, I have a thermal cam but I want the machine running maxed out in order to see where things can be improved.CPUBurn in the repos isn't coded for PPC, only x86 x86_64.

View 5 Replies View Related

Ubuntu / Apple :: Cannot Get Wireless Driver To Load At Boot Time

Mar 14, 2010

I followed the instructions that came with the 802 .11 Linux STA driver and was able to initialize my card and connect to a protected network! The instructions also tell me how to load the drivers at boot time, but I get an error when I try to run

Code:

# sh: for i in `find /lib /var -name wl.ko`; do mv $i ${i}.orig; done

The message returned is

Code:

bash: syntax error near unexpected token `do'

Upon restarting, my wireless is no longer active. My card is Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)

View 7 Replies View Related

Ubuntu / Apple :: Every Time Boot -speaker Volume Resets To 0

Oct 12, 2010

I'm on 10.10 Everytime I start my iMac, the volume in alsamixer is reset to zero. It takes 8 seconds to fix, but I'd rather not have to do this every time I boot up. Anyone know how to fix this?

View 1 Replies View Related

Ubuntu / Apple :: Mounting Time Capsule Drives - Connection Refused

Jan 4, 2010

I've been looking for a way to mount my time capsule drives under Ubuntu, and found some guides, but none of them work for me. Apparently what you need to do is:

sudo mount.cifs //10.0.1.1/timecapsulename/dirname /media/timecapsule/ -o pass=pa55w0rd

My time capsule's ip is 192.168.1.10, it's name is "Time Capsule", the drive I'm trying to mount is called Movie HD

If I input the following command:

sudo mount.cifs //192.168.1.10/Time Capsule/Movie HD /media/timecapsule/ -o pass=mypassword

I get a connection refused error.I tried a couple different variations such as "/"Time Capsule"/Movie HD",etc,every combination, but I get a connection refused error (111) every time.(I have two drives on my time capsule, the internal, Movie HD, and an external usb one, Media HD, I want to actually mount them both)On my time capsule I did set it guest access to read only... Also, when I go to my places> network I do see the time capsule in the list, but I get an error message that it can't access the shares when I try to open it.

View 1 Replies View Related

Ubuntu :: Mount Time Machine Drive In 9.10?

Mar 21, 2010

I have a Time Machine back up of my old macbook that was stolen.

I have installed hfsplus and libhfsp0 via synaptic.

When I ran: 'cat /boot/config-2.6.31-20-generic | grep HFS' in the terminal...

I got:
CONFIG_NET_SCH_HFSC=m
CONFIG_HFS_FS=m
CONFIG_HFSPLUS_FS=m
CONFIG_SQUASHFS=m
# CONFIG_SQUASHFS_EMBEDDED is not set
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3

I read in some other post that any line starting with '#' needed to end with '=m'

I'd just like to be able to mount my time machine drive.

View 3 Replies View Related

Ubuntu / Apple :: 10.10 On Macbook Pro 15" 1,1 - Intel - Laptop Overheats Until Shut Down - Freeze Every Time

Apr 5, 2011

I purchased a macbook (for cheap) without a hard drive and decided to go with Ubuntu 10.10 on my new drive.

This laptop has serious overheating issues. I installed the sensor applet and the fans are not coming on, even when the core temp exceeds 167(f). The base of the laptop becomes hot enough to fry an egg on.

I'd like to find a way to make the fans come on in an automated fashion (without having to do it at the command line each time I want them to come on). I'd even be happy with them on all the time if that will resolve the issue, as the laptop overheats until shut down / freeze every time I use it.

View 1 Replies View Related

Ubuntu :: How To Deal With Tar.gz

Jun 17, 2011

i have been using linux for about 2 months now , and still can't deal with tar.gz files! i extract the achieve , open the folder , open terminal in that folder , then make and..... nothing i didn't find the make file in firefox 6 tar.gz for example , for other files there was missing libraries , is there a compiler that can do the job simply like synaptic? it is really stupid that every application should have its installation instructions!!!! why there isn't some standardization for all linux distro in this point? deb packages are simple to use , why there isn't a general package system for all linux distro ? or at least a unified system for compiling where i can use the tar.gz files like .deb files?

View 9 Replies View Related

Slackware :: Apple Time Capsule DHCP Sets Bogus Hostname?

Jan 20, 2011

During Slackware 13.1 setup, I chose the hostname stella-sl2. This hostname is also the one that the system is displaying before I configured network access. After configuring wired network access to my Apple Time Capsule, my hostname suddenly changed to INTERFACE='eth0'. As a result I'm noticing some very strange things, like the login prompt which has become "INTERFACE='eth0' login: ".

After configuring wireless network access to the Time Capsule, the hostname changed to "INTERFACE='wlan0'". Note that, during boot, wlan0 is brought up AFTER eth0.

Also strange is this:

bash-4.1$ cat /etc/HOSTNAME
INTERFACE='eth0'.DNSSERVERS='10.0.1.1'
bash-4.1$ /bin/hostname
INTERFACE='wlan0'
bash-4.1$

Until now, it was only a minor annoyance, it didn't prevent anything from happening, internet connection was not affected. But now I'm configuring sendmail which needs to talk to a relay SMTP server, and sendmail "HELO"'s itself using the bogus hostname:

>>> HELO INTERFACE='wlan0'
<<< 501 HELO requires valid address
554 5.0.0 Service unavailable

Probably this is caused by the Time Capsule not adhering to standards. However, the Time Capsule's firmware is the latest version, so I cannot fix this. Is there a way to prevent dhcp from changing the hostname? How can I make sure that the hostname that I configured during setup remains active?

View 2 Replies View Related

General :: Random Keyboard Pseudo-failure?

Jan 9, 2011

Occasionally when I start typing into a text box, it will not enter text until I go to another window or text box and click back in. This seems to happen at random without any pattern or to any specific applications more than others. I can still use alt-tab and similar commands, so I know it's not the hardware. I am running Ubuntu 10.04 Lucid Lynx using a Microsoft Multimedia keyboard and I am running SCIM for Japanese input, but I almost always have it set to English, and it can be set t

View 12 Replies View Related

General :: What Is Short Cut Key To Toggle Between Pseudo Terminals In Red Hat?

Apr 21, 2011

what is short cut key to toggle between pseudo terminals in red hat? how can i create customized short cut keys in red hat?

View 2 Replies View Related

Ubuntu / Apple :: Install Version On Partition Of One Of Internal Hard Drives / Using Option Key At Power-up Time?

Jan 17, 2011

I am running OSX Tiger (10.4.11) here on my trusty old G4 MDD with a "giga" 1.4gig CPU accelerator and doing quite well with it actually.I have discovered Gimp and Inkscape and love the open source concept.I registered only a few days ago, and have been lurking around to see if I can get a look at Ubuntu in action.Would it be possible to install some version of Ubuntu on a partition of one of my internal hard drives and be able to boot it, using the option key at power-up time?I guess this would be called a "dual-boot" situation.If so, can someone provide a link as to what to download.

View 5 Replies View Related

Networking :: Configure Ubuntu For Time Machine Backup?

Jan 10, 2010

I have a machine running Karmic sat in the corner of my office. I scp stuff from my mac to it quite a lot over my local wireless network.At the moment, it holds a .sparsebundle backup of my mac created by SuperDuper! (mac backup application) that I periodically transfer over. I'd like to make this system a little more sophisticated and use Apple's Time Machine to automatically backup to my Ubuntu box if possible.

Anyone have any experience of this? I'm kinda hoping for something a bit more straight forward than this: http:[url]....

View 1 Replies View Related

Ubuntu :: Script To Open Pseudo-terminal At User Login To GUI: (kiwi) 10.04?

Nov 26, 2010

I've been able to write a basic script that opens a terminal a lil messagemy issue, i want it to open its pseudoterminal as soon as i log into GUIthe script:

Code:
#!/bin/bash
if [ $1 = "start" ]

[code]...

View 1 Replies View Related

Red Hat / Fedora :: Pseudo-ttys - Both BSD And SVR5 Versions Seem To Be Incomplete

May 21, 2010

I'm trying to complete the porting to RHEL 5 of a commercial application that we've had running on AIX and SCO for decades. It originally ran on dumb-terminals, and even now runs on dumb-terminal emulators that run on Windows. We have thousands of customers, many of whom we'd like to migrate to Linux. We're pretty much done with the port, with the exception of this little glitch we're having with pseudo-ttys...

Our app utilizes pseudo-ttys, such that sub-portions of the application run under a screen manager that provides for screen-switching of multiple instances of the sub-apps on non-GUI terminals, some of which are still running serial. In this regard, it is not unlike the GNU "screen" program. However, it also supports file transfers over serial links using zmodem, and requires the ability to switch in and out of a fully 8-bit transparent mode where the screen switching keyboard commands must be ignored.

On AIX, we're using the BSD TIOCUCNTL (UIOCCMD) capability to send commands from the sub-app to the screen manager. TIOCUCNTL provides custom user ioctls and is an ideal way to solve the problem. It is not implemented on Linux, and the "alternative" of TIOCPKT does not provide arbitrary ioctls so at best we'd have to commandeer some of the existing TIOCPKT ioctls for our own use if that's even possible. TIOCPKT seems like a hack, it apparently was implemented not as a general mechanism but to solve problems specific to rlogin/rlogind.

SCO didn't support TIOCUCNTL either, so years ago we used the SVR5 alternative of putmsg/getmsg. This is a streams-based mechanism of sending control information over streams separate from the data. While RHEL 5 seems to have man pages indicating these commands exist, and in fact you can link programs using them to libc without errors, they are apparently stubbed out and return "function not implemented." This seems to be, according to this Wiki, due to certain Linux factions deeming that streams are "technically inadequate":

Certainly, I would agree that a streams implementation that is incomplete is undoubtedly "technically inadequate."

At the same time, it would appear that the SVR5 method of pseudo-tty is now the recommended implementation, the BSD one being "deprecated" (not to mention, also incomplete on Linux, given TIOCUCNTL is missing):

So here I am trying to figure out how to solve the problem. I have found a library that apparently implements the getmsg/putmsg commands for Linux, called libLiS. However, according to IBM, it has a problem with SELinux:

We've had to disable SELinux for other reasons anyway, so this is not a show stopper for us, and I am actively exploring using it as our solution. However, I've never been exactly crazy about the idea of depending on disabling security features to make something work. But, there's something to be said for the compatibility it would offer for our apps.

However, it occured ot me that we are probably not the first to have this problem, and was wondering if perhaps there is another solution that we should consider.

It has occured to me to use named pipes, but this would be rather ugly--we'd have to maintain a directory full of hundreds of named pipes, probably named after the associated ptys that the sub-apps could use to issue control commands to their screen manager, and the manager would have to monitor these pipes for commands, etc.-- certainly possible, but it seems like it might be re-inventing the wheel a bit, or at the very least, is a somewhat kludgy work-around to the apparent lack of any user-customizable control mechanisms in the pseudo-ttys. And we'd have to support it in addition to the code for the other methods since those platforms aren't going away anytime soon (SCO death-throes notwithstanding).

View 1 Replies View Related







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