Ubuntu :: Create A Bash Script To Create Make A Ftp Mirror Copy Of It

Aug 4, 2011

I recently bought an host to have a personal website and would like to create a bash script to create make a mirror copy of it and then add it to crontab to run once a week. Essentially what I want to do is to get the website by using wget -m ftp://user***@ftp.host/mydir

Once this is done I'd like to have everything in an archive called mysite.date.tar.7z I've no experience at all of bash scripting but I guess this should be an easy task? How to make the user and password not visible ? Is there any other option better than wget? (maybe rsync it works better?)

View 2 Replies


ADVERTISEMENT

CentOS 5 :: How To Create A Local Mirror

Aug 22, 2011

I am trying to create a local mirror/repository for CentOS 5.6 for updates and network installs. I have read the page here on the site about how to do it over and over again, and I still can't figure it out. I have already created the directory, but right after that, I can't go any further. I know this is much easier than I probably think it is. Would someone mind telling me, (in beginners terms) on how to do this? I just want the 'os' package and nothing else.

View 1 Replies View Related

General :: Which Mirror Image - Create A USB Startup Disk?

Jun 13, 2011

At the Get Slackware page at the Slackware website it gives a list of addresses which when I click one of the addresses it redirects to another page with a list of mirror images. Which address and which mirror image do I need to work with Kubuntu 11.04 on my netbook so I can create a USB startup disk? With my connection speed these mirror image downloads take about an hour and a half and I cannot just be guessing which mirror image to download.

View 8 Replies View Related

Applications :: Create Local Mirror Of Remote Server Without Altering It?

Jul 29, 2009

I'm new here and hope to profit from your immense linux knowledge and of course to share my own experience where I can.

I'm in a student organization and we use a file server that runs linux. I can log in through ssh and copy using scp using login and password (no rsa/dsa keys because most users are windows users using winSCP and they're lacking in computer knowledge so we don't require them to mess around with keys)

However, I don't have network access everywhere, so I'd like to make a copy on my laptop harddisk of some of the folders I use most frequently. Note that I don't need it to copy files from my pc back to the remote server so I don't need two-way sync. Deleting the local copy every time and downloading a new full copy is not an option as we are talking about several gigabytes and the download speed is limited. Normally I would use Unison, however, this requires unison to be installed on both pc's and I can't install any software on the file server so this is not an option.

Any ideas on how to achieve this? I'm reasonable knowledgable about linux so I don't mind tinkering with some config files and using command line applications.

View 1 Replies View Related

General :: File Management - Create Mirror Of Directory But Ignore Deletions?

Feb 7, 2011

I would like to create a directory public_html/archive that is a mirror of public_html/images, except that deletions in the images directory don't cause corresponding deletions in archive.

I was going to manage all of this in code, but then I figured, maybe the system can handle it for me in a robust way.

Note that the website will reference archive in real time, so it has to be an instant mirror and not something done nightly, etc.

View 2 Replies View Related

Slackware :: Command To Create Local Mirror Of Alien Bob's Kde4.4.0 Packages?

Feb 10, 2010

I know there has to be an easier way to do this than to download each file individually. On an ftp site I would just use
PHP Code...

But with those files being on an HTTP server and wget not supporting HTTP file globbing I'm at a loss.

What is a one step method to recursively download all files in a directory on an HTTP server?

View 5 Replies View Related

Ubuntu :: Create A Perfect Copy Of HDD?

Feb 20, 2011

i want to create a perfect copy of my HDD. I have ubuntu and windows on here. I want to make it so that i can boot off an external HDD, and it will start up the GRUB menu, and all my files etc. will be the same on each OS as they were on the internal. is there a good way to do this?

View 3 Replies View Related

Ubuntu Installation :: Create A Usb Bootable Copy Of Windows ?

Jul 21, 2010

Ive installed and have up and perfect a copy of ubuntu, thing is i need windows for recording and xna, i want to make a installer from usb as i havent one cd or dvd i can use for installing and all the quick fixes seem to be either in linux to make a linux usb installer, in windows to make a linux usb installer, or windows to make a windows installer, but i cant seem to find one for linux to make a windows installer, as in i would like a linux program to create a bootable usb of windows of a iso i already have.

View 4 Replies View Related

Ubuntu :: Create A Folder Where You Can Copy Files To But You Can't Delete Them After?

Nov 24, 2010

i'm confronting atm. I need to create a folder where ppl can copy files and i need to be sure that those files cannot be deleted after they are copied there. The folder will be accessed over network, and i need to be sure no one will delete somebody else's files.Also i need to tell you that i'm working with regular users, so creating a folder for each user and chown/chmod-ing it won't do the trick(allready tried and ended up with a whole lot of files in the parent directory).I also tried chattr +a but that doesn't allow them to write new files in the folder.

View 2 Replies View Related

General :: Create Backups From Some Copy Protected DVD's?

Apr 14, 2010

I'd like to create backups from some copy protected DVD's, for my private use only.

Does it work this way to circumvent the copy protection mechanisms?

Code:
# dd if=/dev/dvd of=dvd.iso

and then burn dvd.iso on an empty DVD.

View 3 Replies View Related

Ubuntu :: Software To Create Image Of Hard Drive / Copy It To DVD?

Feb 5, 2010

Is there any software that will create an image of my Hard Drive and put it on DVD as it is and if I had to reinstall I could use that image?

View 5 Replies View Related

Ubuntu :: How To Create Launcher From Bash Script

Mar 11, 2010

How do I automate the creation of a launcher from a bash script?I can easily create my launcher by drag and drop or right-clicking on the menu panel, but I would like to fully automate this from a bash script.I suppose it is a Gnome question rather than a general Ubuntu question, but all searches typically ends explaining how to create a launcher that runs a bash script.

View 5 Replies View Related

Ubuntu :: Create Some Aliases For Bash Shell?

Jun 14, 2010

I would like to create some aliases for bash shell. On other Unix/Linux machines I have done this using the alias command like this: alias rm rm -i

When I type that into a terminal on Ubuntu, it looks like alias is not installed. I get this:

bash: alias: rm: not found
bash: alias: rm: not found
bash: alias: -i: not found

I tried adding the alias to .bashrc instead, but then I get the same error message every time I start terminal. Just for fun I tried apt-get install alias, just to see what would happen, and it installed something called libperl-alias instead, and alias still doesn't work.

View 2 Replies View Related

Fedora Servers :: Create Exact Backup / Copy?

Mar 14, 2011

I want to backup my server that godaddy is hosting and install it on my linux system at home. In other words I want to have a clone of my server at home, like what timemachine does on mac (carries files and programs from one mac to another to make a clone).

How do I do that? I create an image file an iso file? or what? How?

I want to do this incase my server burns up over there. I don't want to reinstall all the programs and do the set ups manually again.

View 4 Replies View Related

General :: Create A Share On Each And Then Be Able To Copy Files To Each Using Scripts

Feb 8, 2010

I have two Redhat Linux systems and I want create a share on each and then be able to copy files to each using scripts etc. (I dont want to use FTP) What is the most standard way of doing this?

I have read that you can use /etc/exports which seem easy enough, but how does one connect to the remote share and copy files etc, is this command line or file browser etc.

View 6 Replies View Related

Ubuntu :: Create Shell Script To Copy Contents Of A Shared Folder On A XP PC?

Apr 8, 2011

I was wondering if there would be a way for me to copy the contents of a shared folder that's running on an XP system using shell script. Actually, there are two shared folders that I want to do this with. I want to be able to launch the script and automatically copy all the contents of each folder into two separate folders on my ubuntu desktop. For example;

Lets say that I have Shared Folders A1 and A2 on my networked XP system and I have Folders B1 and B2 on my Ubuntu desktop. I want the script to automatically copy the contents of A1 into B1 and likewise for A2 and B2. During the copying, I want the script set up such that any pre-existing files in the B1 & B2 folders will automatically get overwritten by the ones copied from A1 & A2.Is there any possibilities of me achieving this?

View 7 Replies View Related

General :: Create A Bash Script?

Jun 12, 2011

create a bash script with "if" statements and to do that I need to learn some bash programming. I will probably do it later but I want to create some script today so maybe The script should do this:

Code:
I enter something like this string with a script path:
$ ~/watch-script http://www.......com/watch?v=OI3gKGhe0QM

[code]...

View 5 Replies View Related

General :: Create A Shortcut In BASH?

Feb 23, 2010

I wanted to do this:

Code:

ssh root@10.10.10.10

How would I create a shortcut in BASH so that I can simply type:

Code:

mypc

I want to be able to execute commands like that; like you can with ls, cd, grep, etc. Do I create a BASH script and place it in /bin?

View 14 Replies View Related

Ubuntu :: Write A Bash Script To Create Users?

Oct 17, 2010

I have started using Ubuntu and I have to add a large number of users, over
a thousand, using a Bash Script. I also have to give them a password. Do you create a text file first.

View 1 Replies View Related

Debian :: Create UEFI Boot USB By Copy ISO Content Directly

Mar 21, 2015

On Windows OS, I can create Debian UEFI USB boot by mount Debian ISO and directly copy content of ISO to USB FAT32. On Debian OS, When I mount the debian iso and directly copy content of iso to usb fat32, I keep getting this error: "Filesystem does not support symbolic links".I choose to skip all, the copy operation continue but USB can't boot.

Question: How to create Debian USB UEFI boot by copying content of iso file directly to fat32 usb on Debian OS?My OS: Debian Jessie RC1.The ISO file: debian-jessie-DI-rc1-amd64-DVD-1.iso URL....

View 4 Replies View Related

General :: Create GUI For Bash Script Using Kommander?

Jan 21, 2010

I have create some simple bash script file (.sh), and i would like to find out what are the steps that i should do so that the GUI form is able to call out and run the bash script file (e.g clicking the button on the form, and the script will run).

View 1 Replies View Related

Server :: Create Crontab Job By Bash Script

Jun 6, 2010

i want to create a crontab job by bash scripts:test1 cat /opt/shell/test1crontab on.but i do not want to use this command line ( crontab -e )to add this job.

View 4 Replies View Related

Programming :: How To Create A Menu In C Like Bash's Select

May 23, 2011

Im wondering how to create a menu in c like bash's select. I imagine there is already something out but I don't know what it would be. Im a c newb but been scripting for a long time now and trying to pick up a little c.this would be what I am looking to display:

Code:

1) option 1
2) option 2
3) option 3

Make a selection:obviously 1,2,3 would be the only valid selection and anything else would say invalid or something like that.

View 2 Replies View Related

Ubuntu Installation :: Create New Partition Table Does Automatically Create New Mbr

Oct 28, 2010

When using the gparted option to create a new partition table does this automatically create a new mbr?

View 1 Replies View Related

Fedora X86/64bit :: Can't Able To Create More Than 28 Spawn Bash In Core 64 Bit?

Jun 1, 2010

I can't able to create more than 28 spawn bash in fedora core 7 (2.6.25.4 kernel) linux 64 bit machine. I can able to create 1015 spawn bash in 32 bit fedora 7 core. Script I have used for both 32 bit and 64 bit:

[Code]...

View 1 Replies View Related

General :: Bash - Create Folders According To Date In System?

May 26, 2011

Is there any other short/easier and smarter way to do the following in Linux? code...

I need to use crontab to create folders every day and every month inside /home/abcd/dammi, /home/abcd/harrami, /home/wxyz/dammi and /home/wxyz/harrami. Can anyone help me with this?

View 2 Replies View Related

General :: Create A Simple GUI For The Bash Script Files?

Feb 20, 2010

Are there any tools that can be used to create a simple GUI for the bash script files i have created, and the GUI should be able to run on both Solaris and Red Hat systems.

View 4 Replies View Related

Programming :: Bash Script To Create Directory Sizes Around 4GB

Jul 22, 2010

I have a Directory of files over time the directory has become a pain to manage... Its now a few 100GBs each file has a partner .log file so id would want some logic in keeping these together..So I want a script to move the files into sub-directories with a limit or 4GB and then i'll burn each of the directories to DVD.

View 14 Replies View Related

General :: Create A Script That Will Simply Create A DIR With Date And Autorun Itself Every 24 Hours?

Jan 17, 2010

i am running into few problems with the script here. I have an FTP server, all configured, and i need to have a script that will create a folder with current dated within a tree as soon as particular user logs in. I was wondering if that is possible with proftpd. if not, can someone suggest how to create a script that will simply create a DIR with date and autorun itself every 24 hours? i am running Debian/Proftpd with Mysql authorization.

View 14 Replies View Related

CentOS 5 :: Unable To Create LVM Mirrors - "Unable To Allocate Extents For Mirror(s)"; Free Space Is Available?

Dec 29, 2008

I have fresh CentOS 5.2 installed to 2 sata hdd 1.5 TB size; on every of that hdd is primary raid1 submirror of /boot made with md during install. All other space is lvm place, on lvm living root and swap partitions. And it's work. Now I want to mirror my root and swap, and add other volumes with different raid requirements (raid0 and raid1).

# lvcreate -L10G -m1 -n mir vg0 Insufficient suitable allocatable extents for logical volume : 320 more required Unable to allocate extents for mirror(s).

View 2 Replies View Related







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