Sponsored Content
Full Discussion: mkdir bug
Top Forums Shell Programming and Scripting mkdir bug Post 302474515 by mtomar on Wednesday 24th of November 2010 12:28:46 PM
Old 11-24-2010
It might sound like stupid idea. Since you have /home/yannick always available.
Try making following changes.
Code:
if [ -d /home/yannick/backup ] ;
..
 else
        mkdir  /home/yannick/backup

 

9 More Discussions You Might Find Interesting

1. Linux

install vs mkdir

I'm sitting here late at night, reading linux from scratch, and I come to this part: http://lfs.osuosl.org/lfs/view/stable/chapter06/creatingdirs.html my question to you, the all knowing unix.com'ers is this: what's the difference between using the install command as they do, and using the... (1 Reply)
Discussion started by: thmnetwork
1 Replies

2. Shell Programming and Scripting

mkdir

Hi, I look for a script to create 150 directories : d000 d001 d002 ... ... d149 would you help me please ? I think it would be for i mkdir d$i Many thanks. PS : #uname -a AIX fserver 3 5 0050691A4C00 (2 Replies)
Discussion started by: big123456
2 Replies

3. UNIX for Advanced & Expert Users

mkdir

Is there ant way to increase max number of folders in the directory from the 32766: Problem UFS: shell>mkdir mmm mkdir: mmm: Too many links But there are no links, just folders. shell>ls | wc -l 32766 (3 Replies)
Discussion started by: mirusnet
3 Replies

4. Shell Programming and Scripting

Help me with mkdir command

Hi, please help me with this small script #!/bin/sh curdir=`pwd` n20=$curdir'/n20/' msat=$curdir'/n20/msat/' if then mkdir $n20 fi if then mkdir $msat fi for a in 30 40 50 60 70 80 do (4 Replies)
Discussion started by: Dark2Bright
4 Replies

5. Linux

mkdir command

Hi all, i am new to Linux and need some help. I used the command: mkdir super Directory super is created When i try to change to this directory using: cd /super I get: bash: cd: /super: No such file or directory when i use: rm super I get: rm: cannot remove 'super': Is a directory What... (5 Replies)
Discussion started by: Deside
5 Replies

6. Homework & Coursework Questions

Mkdir

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Do the procedure, which if there are 5 parameters then it creates 4 directories with names of 4 parameters, in... (2 Replies)
Discussion started by: bolones
2 Replies

7. UNIX for Dummies Questions & Answers

Mkdir utility

Howdy, Puttering around in unix, and read this in the mkdir man page: "The mkdir utility creates the directories named as operands..." What does this mean, i.e. as operands? Many thanks, DN (2 Replies)
Discussion started by: danuke
2 Replies

8. UNIX for Dummies Questions & Answers

How to use mkdir{...} with a variable?

Hi, I used "mkdir job{0001..10}" do get directories. Now I want to create directories with a variable, for exemple "mkdir job{0001..$a}". When a=5 I get the directory "job{0001..5}". What have i to change to get job0001,...,job0005 :/ Thx for ur help :) (1 Reply)
Discussion started by: E_taks
1 Replies

9. UNIX for Beginners Questions & Answers

Mkdir

hi linux expert what is a difference between: mkdir test and mkdir ./test and also if ( -e /test ) then and if ( -e ./test ) then thanks in advance Please use icode or code tags next time for your code and data (1 Reply)
Discussion started by: abdossamad2003a
1 Replies
bup-save(1)						      General Commands Manual						       bup-save(1)

NAME
bup-save - create a new bup backup set SYNOPSIS
bup save [-r host:path] <-t|-c|-n name> [-#] [-f indexfile] [-v] [-q] [--smaller=maxsize] DESCRIPTION
bup save saves the contents of the given files or paths into a new backup set and optionally names that backup set. Before trying to save files using bup save, you should first update the index using bup index. The reasons for separating the two steps are described in the man page for bup-index(1). OPTIONS
-r, --remote=host:path save the backup set to the given remote server. If path is omitted, uses the default path on the remote server (you still need to include the ':'). The connection to the remote server is made with SSH. If you'd like to specify which port, user or private key to use for the SSH connection, we recommend you use the ~/.ssh/config file. -t, --tree after creating the backup set, print out the git tree id of the resulting backup. -c, --commit after creating the backup set, print out the git commit id of the resulting backup. -n, --name=name after creating the backup set, create a git branch named name so that the backup can be accessed using that name. If name already exists, the new backup will be considered a descendant of the old name. (Thus, you can continually create new backup sets with the same name, and later view the history of that backup set to see how files have changed over time.) -f, --indexfile=indexfile use a different index filename instead of ~/.bup/bupindex. -v, --verbose increase verbosity (can be used more than once). With one -v, prints every directory name as it gets backed up. With two -v, also prints every filename. -q, --quiet disable progress messages. --smaller=maxsize don't back up files >= maxsize bytes. You can use this to run frequent incremental backups of your small files, which can usually be backed up quickly, and skip over large ones (like virtual machine images) which take longer. Then you can back up the large files less frequently. Use a suffix like k, M, or G to specify multiples of 1024, 10241024, 10241024*1024 respectively. --bwlimit=bytes/sec don't transmit more than bytes/sec bytes per second to the server. This is good for making your backups not suck up all your net- work bandwidth. Use a suffix like k, M, or G to specify multiples of 1024, 10241024, 10241024*1024 respectively. --strip strips the path that is given from all files and directories. A directory /root/chroot/etc saved with "bup save -n chroot --strip /root/chroot" would be saved as /etc. --strip-prefix=path-prefix strips the given path-prefix path-prefix from all files and directories. A directory /root/chroots/webserver saved with "bup save -n webserver --strip-path=/root/chroots" would be saved as /webserver/etc --graft=old_path=new_path a graft point old_path=new_path (can be used more than once). A directory /root/chroot/a/etc saved with "bup save -n chroots --graft /root/chroot/a/etc=/chroots/a" would be saved as /chroots/a/etc -#, --compress=# set the compression level to # (a value from 0-9, where 9 is the highest and 0 is no compression). The default is 1 (fast, loose compression) EXAMPLE
$ bup index -ux /etc Indexing: 1981, done. $ bup save -r myserver: -n my-pc-backup --bwlimit=50k /etc Reading index: 1981, done. Saving: 100.00% (998/998k, 1981/1981 files), done. $ ls /home/joe/chroots/httpd bin var $ bup index -ux /home/joe/chroots/httpd Indexing: 1337, done. $ bup save --strip -n joes-httpd-chroot /home/joe/chroots/httpd Reading index: 1337, done. Saving: 100.00% (998/998k, 1337/1337 files), done. $ bup ls joes-httpd-chroot/latest/ bin/ var/ $ bup save --strip-prefix=/home/joe/chroots -n joes-chroots /home/joe/chroots/httpd Reading index: 1337, done. Saving: 100.00% (998/998k, 1337/1337 files), done. $ bup ls joes-chroots/latest/ httpd/ $ bup save --graft /home/joe/chroots/httpd=/http-chroot -n joe /home/joe/chroots/httpd Reading index: 1337, done. Saving: 100.00% (998/998k, 1337/1337 files), done. $ bup ls joe/latest/ http-chroot/ SEE ALSO
bup-index(1), bup-split(1), bup-on(1), bup-restore(1), ssh_config(5) BUP
Part of the bup(1) suite. AUTHORS
Avery Pennarun <apenwarr@gmail.com>. Bup unknown- bup-save(1)
All times are GMT -4. The time now is 05:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy