Error: [n] is not a valid number of jobs. Must be between 1

Post here if you have questions about how to use the program
Post Reply
AlliumPorrum
Posts: 3
Joined: Sat Mar 08, 2014 4:38 pm

Error: [n] is not a valid number of jobs. Must be between 1

Post by AlliumPorrum » Sat Mar 08, 2014 4:41 pm

I'm trying to backup my system at sda to another USB stick at sdb, but I always just get an error message:

:~$ sudo fsarchiver -v -jn -zn -a -A savefs /dev/sdb1/xubuntu_backup.fsa /dev/sda1

fsarchiver.c#202,process_cmdline(): [n] is not a valid number of jobs. Must be between 1 and 32
====> fsarchiver version 0.6.17 (2013-02-25) - http://www.fsarchiver.org <====


What's wrong with this..?

Lazy_Kent
Posts: 53
Joined: Sun Nov 15, 2009 1:08 pm
Location: Moscow, Russia

Re: Error: [n] is not a valid number of jobs. Must be betwee

Post by Lazy_Kent » Sat Mar 08, 2014 5:19 pm

"n" in the both cases (-jn and -zn) must be an integer.
"-j" is a number of jobs, "-z" is a compression level.

Example:

Code: Select all

fsarchiver -v -j2 -z7 -a -A savefs /dev/sdb1/xubuntu_backup.fsa /dev/sda1
Read 'man 8 fsarchiver'.

AlliumPorrum
Posts: 3
Joined: Sat Mar 08, 2014 4:38 pm

Re: Error: [n] is not a valid number of jobs. Must be betwee

Post by AlliumPorrum » Sat Mar 08, 2014 5:58 pm

Thanks Lazy_Kent, that helped! But, then I got this:

:~$ sudo fsarchiver -v -j4 -a -A savefs /dev/sdb1/xubuntu_backup.fsa /dev/sda1
[errno=20, Not a directory]: archwriter.c#116,archwriter_create(): cannot create archive /dev/sdb1/xubuntu_backup.fsa[/i]

I just formatted sdb to ext4 partiotion and it is mounted OK. Why can't fsarchiver write into it??

Lazy_Kent
Posts: 53
Joined: Sun Nov 15, 2009 1:08 pm
Location: Moscow, Russia

Re: Error: [n] is not a valid number of jobs. Must be betwee

Post by Lazy_Kent » Sat Mar 08, 2014 7:40 pm

Use a path in your filesystem, not a device name.
Something like /mnt/backup/ instead of /dev/sdb1/.

AlliumPorrum
Posts: 3
Joined: Sat Mar 08, 2014 4:38 pm

Re: Error: [n] is not a valid number of jobs. Must be betwee

Post by AlliumPorrum » Sat Mar 08, 2014 9:20 pm

How can I find out the correct "path in filesystem", I really don't know much about Ubuntu

Lazy_Kent
Posts: 53
Joined: Sun Nov 15, 2009 1:08 pm
Location: Moscow, Russia

Re: Error: [n] is not a valid number of jobs. Must be betwee

Post by Lazy_Kent » Sun Mar 09, 2014 4:08 am

I just formatted sdb to ext4 partiotion and it is mounted OK.
The mount point is the path in your system.

Post Reply